@@ -14,44 +14,55 @@ export type VaultPageProps = {
1414export const VaultPage = ( { vaultMeta, vaultAddress } : VaultPageProps ) => {
1515 const [ depositAmount , setDepositAmount ] = useState < string > ( "" ) ;
1616 const [ withdrawAmount , setWithdrawAmount ] = useState < string > ( "" ) ;
17- if ( ! vaultMeta ) {
18- return < div > Unable to fetch vault data for vault at < span className = "font-mono font-light" > { vaultAddress } </ span > </ div > ;
19- }
17+ if ( ! vaultMeta ) {
18+ return (
19+ < div >
20+ Unable to fetch vault data for vault at{ " " }
21+ < span className = "font-mono font-light" > { vaultAddress } </ span >
22+ </ div >
23+ ) ;
24+ }
2025 return (
2126 < div >
22- < section className = "flex flex-col items-center justify-center py-4 border border-gray-200 pb-4 " >
23- < h2 className = "text-2xl font-semibold font-mono " > Total Assets</ h2 >
24- < p className = "font-mono font-light text-4xl pt-2" > { formatToTwoDecimals ( formatUnits ( vaultMeta . vault . totalAssets , vaultMeta . vault . decimals ) ) } { vaultMeta . asset . symbol } </ p >
27+ < section className = "flex flex-col items-center justify-center p-8 border border-gray-200 " >
28+ < h2 className = "text-2xl font-semibold " > Total Assets</ h2 >
29+ < p className = "font-mono font-light text-4xl pt-2" >
30+ { formatToTwoDecimals (
31+ formatUnits ( vaultMeta . vault . totalAssets , vaultMeta . vault . decimals ) ,
32+ ) } { " " }
33+ { vaultMeta . asset . symbol }
34+ </ p >
2535 </ section >
26- < section className = "flex flex-col md: grid md:grid-cols-2 gap-4 pt-4" >
27- < div className = "border border-gray-100 py-4 flex flex-col items-center justify-center " >
28- < h2 className = "text-lg font-semibold pb-4 " > Deposit</ h2 >
29- < div className = "flex flex-row gap-2 items-center w-full px-4 " >
36+ < section className = "grid grid-cols-1 md:grid-cols-2 gap-4 pt-4" >
37+ < div className = "border border-gray-100 p-8 flex flex-col items-start " >
38+ < h2 className = "text-lg font-semibold pb-4 " > Deposit</ h2 >
39+ < div className = "flex flex-row gap-4 items-center w-full " >
3040 < TextInput
3141 value = { depositAmount }
3242 onChange = { ( e ) => setDepositAmount ( e . target . value ) }
33- type = "number" className = "grow" />
34- < Button
35- isDisabled
36- variant = "secondary"
37- onClick = { ( ) => { } } > Deposit</ Button >
38- </ div >
43+ type = "number"
44+ className = "grow"
45+ />
46+ < Button isDisabled variant = "secondary" onClick = { ( ) => { } } >
47+ Deposit
48+ </ Button >
49+ </ div >
3950 </ div >
40- < div className = "border border-gray-100 py-4 flex flex-col items-center justify-center " >
41- < h2 className = "text-lg font-semibold pb-4 " > Withdraw</ h2 >
42- < div className = "flex flex-row gap-2 items-center w-full px-4 " >
51+ < div className = "border border-gray-100 p-8 flex flex-col items-start " >
52+ < h2 className = "text-lg font-semibold pb-4 " > Withdraw</ h2 >
53+ < div className = "flex flex-row gap-4 items-center w-full" >
4354 < TextInput
4455 value = { withdrawAmount }
4556 onChange = { ( e ) => setWithdrawAmount ( e . target . value ) }
46- type = "number" className = "grow" />
47- < Button
48- isDisabled
49- variant = "secondary"
50- onClick = { ( ) => { } } > Withdraw</ Button >
51- </ div >
57+ type = "number"
58+ className = "grow"
59+ />
60+ < Button variant = "secondary" onClick = { ( ) => { } } >
61+ Withdraw
62+ </ Button >
63+ </ div >
5264 </ div >
53-
5465 </ section >
5566 </ div >
5667 ) ;
57- } ;
68+ } ;
0 commit comments