File tree Expand file tree Collapse file tree 2 files changed +26
-6
lines changed
packages/app/features/home Expand file tree Collapse file tree 2 files changed +26
-6
lines changed Original file line number Diff line number Diff line change 7
7
XStack ,
8
8
YStack ,
9
9
Stack ,
10
+ BigHeading ,
10
11
styled ,
11
12
} from '@my/ui'
12
13
import formatAmount from 'app/utils/formatAmount'
@@ -53,15 +54,28 @@ export const TokenBalanceCard = () => {
53
54
{ totalBalance === undefined ? (
54
55
< Spinner size = { 'large' } />
55
56
) : (
56
- < Paragraph
57
- fontFamily = { '$mono' }
57
+ < BigHeading
58
+ $platform-web = { { width : 'fit-content' } }
59
+ $sm = { {
60
+ fontSize : ( ( ) => {
61
+ switch ( true ) {
62
+ case formattedBalance . length > 8 :
63
+ return '$11'
64
+ case formattedBalance . length > 5 :
65
+ return '$12'
66
+ default :
67
+ return 96
68
+ }
69
+ } ) ( ) ,
70
+ } }
58
71
fontSize = { 96 }
59
72
lineHeight = { '$15' }
60
73
fontWeight = { '500' }
74
+ color = { '$color12' }
61
75
zIndex = { 1 }
62
76
>
63
- { formatAmount ( totalBalance , 4 , 0 ) }
64
- </ Paragraph >
77
+ { formattedBalance }
78
+ </ BigHeading >
65
79
) }
66
80
< Paragraph fontSize = { '$6' } fontWeight = { '500' } zIndex = { 1 } >
67
81
{ 'USD' }
Original file line number Diff line number Diff line change @@ -299,14 +299,20 @@ exports[`HomeScreen 1`] = `
299
299
}
300
300
>
301
301
<Text
302
+ accessibilityRole = " header"
302
303
selectable = { true }
303
304
style = {
304
305
{
305
306
" color" : " #FFFFFF" ,
306
307
" fontFamily" : " System" ,
307
308
" fontSize" : 96 ,
308
- " fontWeight" : " 500" ,
309
- " lineHeight" : 119 ,
309
+ " fontWeight" : " 700" ,
310
+ " lineHeight" : 118 ,
311
+ " marginBottom" : 0 ,
312
+ " marginLeft" : 0 ,
313
+ " marginRight" : 0 ,
314
+ " marginTop" : 0 ,
315
+ " textTransform" : " none" ,
310
316
" zIndex" : 1 ,
311
317
}
312
318
}
You can’t perform that action at this time.
0 commit comments