@@ -40,40 +40,41 @@ interface AlreadyLockedTooltipTextProps {
40
40
const AlreadyLockedTooltipText = ( { accountLocks, currentBlock, decimal, token } : AlreadyLockedTooltipTextProps ) => {
41
41
const { t } = useTranslation ( ) ;
42
42
43
- return ( < Grid container item sx = { { maxHeight : '400px' , overflow : 'hidden' , overflowY : 'scroll' } } >
44
- < Typography variant = 'body2' >
45
- < Grid container spacing = { 2 } >
46
- < Grid item xs = { 2.5 } >
47
- { t ( 'Ref.' ) }
48
- </ Grid >
49
- < Grid item xs = { 3.6 } >
50
- { t ( 'Amount' ) }
51
- </ Grid >
52
- < Grid item xs = { 2.9 } >
53
- { t ( 'Multiplier' ) }
54
- </ Grid >
55
- < Grid item xs = { 3 } >
56
- { t ( 'Expires' ) }
43
+ return (
44
+ < Grid container item sx = { { maxHeight : '400px' , overflow : 'hidden' , overflowY : 'scroll' } } >
45
+ < Typography variant = 'body2' >
46
+ < Grid container spacing = { 2 } >
47
+ < Grid item xs = { 2.5 } >
48
+ { t ( 'Ref.' ) }
49
+ </ Grid >
50
+ < Grid item xs = { 3.6 } >
51
+ { t ( 'Amount' ) }
52
+ </ Grid >
53
+ < Grid item xs = { 2.9 } >
54
+ { t ( 'Multiplier' ) }
55
+ </ Grid >
56
+ < Grid item xs = { 3 } >
57
+ { t ( 'Expires' ) }
58
+ </ Grid >
59
+ { accountLocks . map ( ( l , index ) =>
60
+ < React . Fragment key = { index } >
61
+ < Grid item xs = { 2.5 } >
62
+ { isBn ( l . refId ) ? l . refId . toNumber ( ) : 'N/A' }
63
+ </ Grid >
64
+ < Grid item xs = { 3.6 } >
65
+ { amountToHuman ( l . total , decimal ) } { token }
66
+ </ Grid >
67
+ < Grid item xs = { 2.9 } >
68
+ { l . locked === 'None' ? 'N/A' : l . locked . replace ( 'Locked' , '' ) }
69
+ </ Grid >
70
+ < Grid item xs = { 3 } >
71
+ { getLockedUntil ( l . endBlock , currentBlock ) }
72
+ </ Grid >
73
+ </ React . Fragment >
74
+ ) }
57
75
</ Grid >
58
- { accountLocks . map ( ( l , index ) =>
59
- < React . Fragment key = { index } >
60
- < Grid item xs = { 2.5 } >
61
- { isBn ( l . refId ) ? l . refId . toNumber ( ) : 'N/A' }
62
- </ Grid >
63
- < Grid item xs = { 3.6 } >
64
- { amountToHuman ( l . total , decimal ) } { token }
65
- </ Grid >
66
- < Grid item xs = { 2.9 } >
67
- { l . locked === 'None' ? 'N/A' : l . locked . replace ( 'Locked' , '' ) }
68
- </ Grid >
69
- < Grid item xs = { 3 } >
70
- { getLockedUntil ( l . endBlock , currentBlock ) }
71
- </ Grid >
72
- </ React . Fragment >
73
- ) }
74
- </ Grid >
75
- </ Typography >
76
- </ Grid >
76
+ </ Typography >
77
+ </ Grid >
77
78
) ;
78
79
} ;
79
80
@@ -133,8 +134,8 @@ export default function AmountWithOptionsAndLockAmount ({ accountLocks, amount,
133
134
onChangeAmount = { onValueChange }
134
135
onPrimary = { onMaxAmount }
135
136
onSecondary = { lockedAmount && ! lockedAmount ?. isZero ( ) ? onLockedAmount : undefined }
136
- primaryBtnText = { t < string > ( 'Max amount' ) }
137
- secondaryBtnText = { t < string > ( 'Locked amount' ) }
137
+ primaryBtnText = { t ( 'Max amount' ) }
138
+ secondaryBtnText = { t ( 'Locked amount' ) }
138
139
style = { {
139
140
'> div div div' : { fontSize : '16px' , fontWeight : 400 } ,
140
141
fontSize : '16px' ,
0 commit comments