File tree Expand file tree Collapse file tree
packages/wallet/frontend/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 133133# Others
134134.DS_Store
135135.idea
136- tmp
136+ tmp
137+ .vscode /settings.json
Original file line number Diff line number Diff line change 11import { cx } from 'class-variance-authority'
2- import { BackButton } from './BackButton'
32
43const TYPES = {
54 pink : 'text-pink' ,
@@ -17,18 +16,12 @@ type TransferHeaderProps = {
1716export const TransferHeader = ( { type, balance } : TransferHeaderProps ) => {
1817 return (
1918 < div className = "text-center" >
20- < div className = "relative mb-16 mt-7 flex items-center" >
21- < BackButton />
22- < div className = "absolute left-[50%] -translate-x-1/2" >
23- < h2 className = { cx ( 'text-xl font-light' , TYPES [ type ] ) } >
24- Total balance
25- </ h2 >
26- { balance && (
27- < h3 className = { cx ( 'h-10 text-3xl font-semibold' , TYPES [ type ] ) } >
28- { balance }
29- </ h3 >
30- ) }
31- </ div >
19+ < div className = "mb-16 mt-7 flex flex-col items-center justify-center" >
20+ < h2 className = { cx ( 'text-xl font-light' , TYPES [ type ] ) } > Total balance</ h2 >
21+
22+ < h3 className = { cx ( 'h-10 text-3xl font-semibold' , TYPES [ type ] ) } >
23+ { balance ? balance : '-.--' }
24+ </ h3 >
3225 </ div >
3326 </ div >
3427 )
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { useZodForm } from '@/lib/hooks/useZodForm'
66import { Input } from '@/ui/forms/Input'
77import { Badge } from '@/ui/Badge'
88import { TransferHeader } from '@/components/TransferHeader'
9+ import { PageHeader } from '@/components/PageHeader'
910import { useDialog } from '@/lib/hooks/useDialog'
1011import { TimeUnit , requestSchema , transfersService } from '@/lib/api/transfers'
1112import { SuccessDialog } from '@/components/dialogs/SuccessDialog'
@@ -103,6 +104,9 @@ const RequestPage: NextPageWithLayout<RequestProps> = ({ accounts }) => {
103104 return (
104105 < >
105106 < div className = "flex flex-col lg:w-2/3" >
107+ < div className = "flex items-center justify-between md:flex-col md:items-start md:justify-start" >
108+ < PageHeader title = "Request Money" />
109+ </ div >
106110 < TransferHeader type = "turqoise" balance = { balanceSnapshot } />
107111 < Form
108112 form = { requestForm }
@@ -131,7 +135,7 @@ const RequestPage: NextPageWithLayout<RequestProps> = ({ accounts }) => {
131135 } }
132136 >
133137 < div className = "space-y-2" >
134- < Badge size = "fixed" text = "to " />
138+ < Badge size = "fixed" text = "into " />
135139 < Select
136140 required
137141 label = "Account"
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { DebouncedInput, Input } from '@/ui/forms/Input'
77import { Select , type SelectOption } from '@/ui/forms/Select'
88import { Badge } from '@/ui/Badge'
99import { TransferHeader } from '@/components/TransferHeader'
10+ import { PageHeader } from '@/components/PageHeader'
1011import { TogglePayment } from '@/ui/TogglePayment'
1112import { GetServerSideProps , InferGetServerSidePropsType } from 'next'
1213import { accountService } from '@/lib/api/account'
@@ -247,6 +248,9 @@ const SendPage: NextPageWithLayout<SendProps> = ({ accounts }) => {
247248 return (
248249 < >
249250 < div className = "flex flex-col lg:w-2/3" >
251+ < div className = "flex items-center justify-between md:flex-col md:items-start md:justify-start" >
252+ < PageHeader title = "Send Money" />
253+ </ div >
250254 < TransferHeader type = "violet" balance = { balanceSnapshot } />
251255 < Form
252256 form = { sendForm }
You can’t perform that action at this time.
0 commit comments