File tree Expand file tree Collapse file tree 1 file changed +10
-18
lines changed
src/components/Simulator/WalletHome Expand file tree Collapse file tree 1 file changed +10
-18
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react"
2
- import { Box , type BoxProps , Flex , Text } from "@chakra-ui/react"
2
+
3
+ import { Flex } from "@/components/ui/flex"
3
4
4
5
import { getMaxFractionDigitsUsd } from "../utils"
5
6
6
7
import { AddressPill } from "./AddressPill"
7
8
8
- type WalletBalanceProps = BoxProps & {
9
+ type WalletBalanceProps = {
9
10
usdAmount ?: number
10
11
}
11
12
12
- export const WalletBalance = ( {
13
- usdAmount = 0 ,
14
- ...boxProps
15
- } : WalletBalanceProps ) => (
16
- < Box zIndex = { 1 } { ...boxProps } >
17
- < Text textAlign = "center" color = "body.medium" mb = { { base : 2 , md : 4 } } >
18
- Your total
19
- </ Text >
20
- < Text
21
- textAlign = "center"
22
- fontSize = { { base : "3xl" , md : "5xl" } }
23
- fontWeight = "bold"
24
- >
13
+ export const WalletBalance = ( { usdAmount = 0 } : WalletBalanceProps ) => (
14
+ < div className = "z-[1]" >
15
+ < p className = "mb-2 text-center text-body-medium md:mb-4" > Your total</ p >
16
+ < p className = "text-center text-3xl font-bold !leading-base md:text-5xl" >
25
17
{ Intl . NumberFormat ( "en-US" , {
26
18
style : "currency" ,
27
19
currency : "USD" ,
28
20
notation : "compact" ,
29
21
maximumFractionDigits : getMaxFractionDigitsUsd ( usdAmount ) ,
30
22
} ) . format ( usdAmount ) }
31
- </ Text >
32
- < Flex justify = "center" mb = { 4 } >
23
+ </ p >
24
+ < Flex className = "mb-4 justify-center" >
33
25
< AddressPill />
34
26
</ Flex >
35
- </ Box >
27
+ </ div >
36
28
)
You can’t perform that action at this time.
0 commit comments