@lifi/widget 3.12.6-beta.0 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/esm/AppProvider.js +9 -2
- package/dist/esm/AppProvider.js.map +1 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactionItem.js +15 -3
- package/dist/esm/components/ActiveTransactions/ActiveTransactionItem.js.map +1 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactions.js +4 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactions.js.map +1 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactions.style.d.ts +3 -5
- package/dist/esm/components/AlertMessage/AlertMessage.style.js +29 -12
- package/dist/esm/components/AlertMessage/AlertMessage.style.js.map +1 -1
- package/dist/esm/components/AmountInput/PriceFormHelperText.js +13 -2
- package/dist/esm/components/AmountInput/PriceFormHelperText.js.map +1 -1
- package/dist/esm/components/AppContainer.js +34 -21
- package/dist/esm/components/AppContainer.js.map +1 -1
- package/dist/esm/components/Avatar/Avatar.style.d.ts +3 -1
- package/dist/esm/components/Avatar/Avatar.style.js +8 -6
- package/dist/esm/components/Avatar/Avatar.style.js.map +1 -1
- package/dist/esm/components/Card/Card.js +60 -33
- package/dist/esm/components/Card/Card.js.map +1 -1
- package/dist/esm/components/Card/CardLabel.js +46 -29
- package/dist/esm/components/Card/CardLabel.js.map +1 -1
- package/dist/esm/components/Card/CardTitle.js +12 -2
- package/dist/esm/components/Card/CardTitle.js.map +1 -1
- package/dist/esm/components/Card/InputCard.d.ts +1 -1
- package/dist/esm/components/ChainSelect/ChainSelect.js +3 -1
- package/dist/esm/components/ChainSelect/ChainSelect.js.map +1 -1
- package/dist/esm/components/ContractComponent/NFT/NFTBase.js +16 -1
- package/dist/esm/components/ContractComponent/NFT/NFTBase.js.map +1 -1
- package/dist/esm/components/FeeBreakdownTooltip.js +7 -2
- package/dist/esm/components/FeeBreakdownTooltip.js.map +1 -1
- package/dist/esm/components/GasMessage/FundsSufficiencyMessage.js +4 -1
- package/dist/esm/components/GasMessage/FundsSufficiencyMessage.js.map +1 -1
- package/dist/esm/components/GasMessage/GasMessage.style.js +8 -6
- package/dist/esm/components/GasMessage/GasMessage.style.js.map +1 -1
- package/dist/esm/components/GasMessage/GasRefuelMessage.js +11 -1
- package/dist/esm/components/GasMessage/GasRefuelMessage.js.map +1 -1
- package/dist/esm/components/GasMessage/GasSufficiencyMessage.js +9 -1
- package/dist/esm/components/GasMessage/GasSufficiencyMessage.js.map +1 -1
- package/dist/esm/components/Header/NavigationHeader.js +11 -2
- package/dist/esm/components/Header/NavigationHeader.js.map +1 -1
- package/dist/esm/components/Header/WalletMenu.js +12 -3
- package/dist/esm/components/Header/WalletMenu.js.map +1 -1
- package/dist/esm/components/IconTypography.js +4 -3
- package/dist/esm/components/IconTypography.js.map +1 -1
- package/dist/esm/components/ListItem/ListItem.d.ts +2 -4
- package/dist/esm/components/ListItem/ListItemButton.d.ts +1 -1
- package/dist/esm/components/ListItemButton.d.ts +1 -1
- package/dist/esm/components/ListItemButton.js +14 -3
- package/dist/esm/components/ListItemButton.js.map +1 -1
- package/dist/esm/components/NotFound.js +11 -1
- package/dist/esm/components/NotFound.js.map +1 -1
- package/dist/esm/components/PageContainer.js +10 -4
- package/dist/esm/components/PageContainer.js.map +1 -1
- package/dist/esm/components/PoweredBy/PoweredBy.js +14 -2
- package/dist/esm/components/PoweredBy/PoweredBy.js.map +1 -1
- package/dist/esm/components/PoweredBy/PoweredBy.style.d.ts +1 -1
- package/dist/esm/components/ProgressToNextUpdate.js +8 -6
- package/dist/esm/components/ProgressToNextUpdate.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteCard.js +7 -1
- package/dist/esm/components/RouteCard/RouteCard.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteCardEssentials.js +28 -2
- package/dist/esm/components/RouteCard/RouteCardEssentials.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteCardEssentialsExpanded.js +20 -1
- package/dist/esm/components/RouteCard/RouteCardEssentialsExpanded.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteCardSkeleton.js +12 -2
- package/dist/esm/components/RouteCard/RouteCardSkeleton.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteNotFoundCard.js +12 -1
- package/dist/esm/components/RouteCard/RouteNotFoundCard.js.map +1 -1
- package/dist/esm/components/Routes/Routes.js +5 -1
- package/dist/esm/components/Routes/Routes.js.map +1 -1
- package/dist/esm/components/Routes/RoutesExpanded.js +8 -1
- package/dist/esm/components/Routes/RoutesExpanded.js.map +1 -1
- package/dist/esm/components/Select.js +16 -5
- package/dist/esm/components/Select.js.map +1 -1
- package/dist/esm/components/SelectTokenButton/SelectTokenButton.style.js +34 -8
- package/dist/esm/components/SelectTokenButton/SelectTokenButton.style.js.map +1 -1
- package/dist/esm/components/SendToWallet/SendToWallet.style.js +28 -7
- package/dist/esm/components/SendToWallet/SendToWallet.style.js.map +1 -1
- package/dist/esm/components/SendToWallet/SendToWalletButton.js +5 -1
- package/dist/esm/components/SendToWallet/SendToWalletButton.js.map +1 -1
- package/dist/esm/components/SettingsListItemButton.d.ts +1 -1
- package/dist/esm/components/Skeleton/WidgetSkeleton.style.d.ts +1 -1
- package/dist/esm/components/Step/DestinationWalletAddress.js +10 -2
- package/dist/esm/components/Step/DestinationWalletAddress.js.map +1 -1
- package/dist/esm/components/Step/Step.js +3 -1
- package/dist/esm/components/Step/Step.js.map +1 -1
- package/dist/esm/components/Step/StepProcess.js +16 -3
- package/dist/esm/components/Step/StepProcess.js.map +1 -1
- package/dist/esm/components/Step/StepTimer.js +5 -1
- package/dist/esm/components/Step/StepTimer.js.map +1 -1
- package/dist/esm/components/StepActions/StepActions.js +22 -3
- package/dist/esm/components/StepActions/StepActions.js.map +1 -1
- package/dist/esm/components/StepActions/StepActions.style.js +19 -10
- package/dist/esm/components/StepActions/StepActions.style.js.map +1 -1
- package/dist/esm/components/StepActions/StepFees.js +9 -1
- package/dist/esm/components/StepActions/StepFees.js.map +1 -1
- package/dist/esm/components/Switch.js +12 -7
- package/dist/esm/components/Switch.js.map +1 -1
- package/dist/esm/components/Tabs/Tabs.style.d.ts +1 -1
- package/dist/esm/components/Tabs/Tabs.style.js +16 -12
- package/dist/esm/components/Tabs/Tabs.style.js.map +1 -1
- package/dist/esm/components/ToAddressRequiredMessage.js +4 -1
- package/dist/esm/components/ToAddressRequiredMessage.js.map +1 -1
- package/dist/esm/components/Token/Token.js +47 -6
- package/dist/esm/components/Token/Token.js.map +1 -1
- package/dist/esm/components/Token/Token.style.js +14 -7
- package/dist/esm/components/Token/Token.style.js.map +1 -1
- package/dist/esm/components/TokenList/TokenList.style.d.ts +3 -5
- package/dist/esm/components/TokenList/TokenListItem.js +21 -4
- package/dist/esm/components/TokenList/TokenListItem.js.map +1 -1
- package/dist/esm/components/TokenList/VirtualizedTokenList.js +8 -1
- package/dist/esm/components/TokenList/VirtualizedTokenList.js.map +1 -1
- package/dist/esm/components/TransactionDetails.js +52 -6
- package/dist/esm/components/TransactionDetails.js.map +1 -1
- package/dist/esm/config/version.d.ts +1 -1
- package/dist/esm/config/version.js +1 -1
- package/dist/esm/config/version.js.map +1 -1
- package/dist/esm/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.js +11 -1
- package/dist/esm/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.js.map +1 -1
- package/dist/esm/pages/MainPage/MainPage.js +5 -1
- package/dist/esm/pages/MainPage/MainPage.js.map +1 -1
- package/dist/esm/pages/SelectTokenPage/SelectTokenPage.js +8 -1
- package/dist/esm/pages/SelectTokenPage/SelectTokenPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/BookmarkAddressSheet.js +4 -1
- package/dist/esm/pages/SendToWallet/BookmarkAddressSheet.js.map +1 -1
- package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js +4 -1
- package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js.map +1 -1
- package/dist/esm/pages/SendToWallet/EmptyListIndicator.js +5 -1
- package/dist/esm/pages/SendToWallet/EmptyListIndicator.js.map +1 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.js +7 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.style.d.ts +1 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.style.js +6 -6
- package/dist/esm/pages/SendToWallet/SendToWalletPage.style.js.map +1 -1
- package/dist/esm/pages/SettingsPage/ResetSettingsButton.js +9 -2
- package/dist/esm/pages/SettingsPage/ResetSettingsButton.js.map +1 -1
- package/dist/esm/pages/SettingsPage/ResetSettingsButton.style.js.map +1 -1
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js +7 -2
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js.map +1 -1
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js +4 -3
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js.map +1 -1
- package/dist/esm/pages/TransactionDetailsPage/TransactionDetailsPage.js +10 -3
- package/dist/esm/pages/TransactionDetailsPage/TransactionDetailsPage.js.map +1 -1
- package/dist/esm/pages/TransactionDetailsPage/TransactionDetailsSkeleton.js +16 -3
- package/dist/esm/pages/TransactionDetailsPage/TransactionDetailsSkeleton.js.map +1 -1
- package/dist/esm/pages/TransactionDetailsPage/TransferIdCard.js +6 -1
- package/dist/esm/pages/TransactionDetailsPage/TransferIdCard.js.map +1 -1
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryEmpty.js +11 -1
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryEmpty.js.map +1 -1
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryItem.js +14 -2
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryItem.js.map +1 -1
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistorySkeleton.js +10 -2
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistorySkeleton.js.map +1 -1
- package/dist/esm/pages/TransactionPage/ExchangeRateBottomSheet.js +35 -3
- package/dist/esm/pages/TransactionPage/ExchangeRateBottomSheet.js.map +1 -1
- package/dist/esm/pages/TransactionPage/StatusBottomSheet.js +12 -2
- package/dist/esm/pages/TransactionPage/StatusBottomSheet.js.map +1 -1
- package/dist/esm/pages/TransactionPage/TokenValueBottomSheet.js +45 -1
- package/dist/esm/pages/TransactionPage/TokenValueBottomSheet.js.map +1 -1
- package/dist/esm/pages/TransactionPage/TransactionPage.js +4 -1
- package/dist/esm/pages/TransactionPage/TransactionPage.js.map +1 -1
- package/package.json +18 -18
- package/src/AppProvider.tsx +16 -2
- package/src/components/ActiveTransactions/ActiveTransactionItem.tsx +16 -9
- package/src/components/ActiveTransactions/ActiveTransactions.tsx +7 -1
- package/src/components/AlertMessage/AlertMessage.style.tsx +30 -14
- package/src/components/AmountInput/PriceFormHelperText.tsx +12 -10
- package/src/components/AppContainer.tsx +34 -23
- package/src/components/Avatar/Avatar.style.tsx +8 -8
- package/src/components/Card/Card.tsx +60 -37
- package/src/components/Card/CardLabel.tsx +69 -43
- package/src/components/Card/CardTitle.tsx +12 -2
- package/src/components/ChainSelect/ChainSelect.tsx +7 -1
- package/src/components/ContractComponent/NFT/NFTBase.tsx +33 -6
- package/src/components/FeeBreakdownTooltip.tsx +9 -3
- package/src/components/GasMessage/FundsSufficiencyMessage.tsx +7 -1
- package/src/components/GasMessage/GasMessage.style.ts +8 -8
- package/src/components/GasMessage/GasRefuelMessage.tsx +19 -6
- package/src/components/GasMessage/GasSufficiencyMessage.tsx +21 -3
- package/src/components/Header/NavigationHeader.tsx +23 -5
- package/src/components/Header/WalletMenu.tsx +18 -3
- package/src/components/IconTypography.ts +4 -4
- package/src/components/ListItemButton.tsx +21 -12
- package/src/components/NotFound.tsx +17 -6
- package/src/components/PageContainer.ts +19 -15
- package/src/components/PoweredBy/PoweredBy.tsx +16 -8
- package/src/components/ProgressToNextUpdate.tsx +8 -8
- package/src/components/RouteCard/RouteCard.tsx +12 -2
- package/src/components/RouteCard/RouteCardEssentials.tsx +38 -16
- package/src/components/RouteCard/RouteCardEssentialsExpanded.tsx +30 -11
- package/src/components/RouteCard/RouteCardSkeleton.tsx +19 -3
- package/src/components/RouteCard/RouteNotFoundCard.tsx +18 -7
- package/src/components/Routes/Routes.tsx +10 -2
- package/src/components/Routes/RoutesExpanded.tsx +16 -2
- package/src/components/Select.tsx +16 -6
- package/src/components/SelectTokenButton/SelectTokenButton.style.tsx +34 -8
- package/src/components/SendToWallet/SendToWallet.style.tsx +28 -7
- package/src/components/SendToWallet/SendToWalletButton.tsx +7 -1
- package/src/components/Step/DestinationWalletAddress.tsx +14 -2
- package/src/components/Step/Step.tsx +5 -1
- package/src/components/Step/StepProcess.tsx +18 -9
- package/src/components/Step/StepTimer.tsx +9 -5
- package/src/components/StepActions/StepActions.style.tsx +19 -13
- package/src/components/StepActions/StepActions.tsx +32 -10
- package/src/components/StepActions/StepFees.tsx +9 -4
- package/src/components/Switch.tsx +12 -9
- package/src/components/Tabs/Tabs.style.tsx +16 -16
- package/src/components/ToAddressRequiredMessage.tsx +7 -1
- package/src/components/Token/Token.style.tsx +14 -8
- package/src/components/Token/Token.tsx +75 -12
- package/src/components/TokenList/TokenListItem.tsx +37 -8
- package/src/components/TokenList/VirtualizedTokenList.tsx +8 -6
- package/src/components/TransactionDetails.tsx +75 -17
- package/src/config/version.ts +1 -1
- package/src/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.tsx +17 -6
- package/src/pages/MainPage/MainPage.tsx +7 -1
- package/src/pages/SelectTokenPage/SelectTokenPage.tsx +17 -3
- package/src/pages/SendToWallet/BookmarkAddressSheet.tsx +6 -1
- package/src/pages/SendToWallet/ConfirmAddressSheet.tsx +6 -1
- package/src/pages/SendToWallet/EmptyListIndicator.tsx +7 -1
- package/src/pages/SendToWallet/SendToWalletPage.style.tsx +6 -9
- package/src/pages/SendToWallet/SendToWalletPage.tsx +17 -3
- package/src/pages/SettingsPage/ResetSettingsButton.style.tsx +0 -1
- package/src/pages/SettingsPage/ResetSettingsButton.tsx +18 -3
- package/src/pages/SettingsPage/SlippageSettings/SlippageSettings.style.tsx +4 -5
- package/src/pages/SettingsPage/SlippageSettings/SlippageSettings.tsx +11 -2
- package/src/pages/TransactionDetailsPage/TransactionDetailsPage.tsx +16 -4
- package/src/pages/TransactionDetailsPage/TransactionDetailsSkeleton.tsx +29 -9
- package/src/pages/TransactionDetailsPage/TransferIdCard.tsx +6 -4
- package/src/pages/TransactionHistoryPage/TransactionHistoryEmpty.tsx +17 -6
- package/src/pages/TransactionHistoryPage/TransactionHistoryItem.tsx +24 -6
- package/src/pages/TransactionHistoryPage/TransactionHistorySkeleton.tsx +14 -4
- package/src/pages/TransactionPage/ExchangeRateBottomSheet.tsx +70 -11
- package/src/pages/TransactionPage/StatusBottomSheet.tsx +27 -4
- package/src/pages/TransactionPage/TokenValueBottomSheet.tsx +92 -15
- package/src/pages/TransactionPage/TransactionPage.tsx +6 -1
|
@@ -71,25 +71,43 @@ export const TransactionHistoryItem: React.FC<{
|
|
|
71
71
|
>
|
|
72
72
|
<Box
|
|
73
73
|
sx={{
|
|
74
|
+
pt: 1.75,
|
|
75
|
+
px: 2,
|
|
74
76
|
display: 'flex',
|
|
75
77
|
flex: 1,
|
|
76
78
|
justifyContent: 'space-between',
|
|
77
79
|
}}
|
|
78
|
-
pt={1.75}
|
|
79
|
-
px={2}
|
|
80
80
|
>
|
|
81
|
-
<Typography
|
|
81
|
+
<Typography
|
|
82
|
+
sx={{
|
|
83
|
+
fontSize: 12,
|
|
84
|
+
}}
|
|
85
|
+
>
|
|
82
86
|
{startedAt.toLocaleString(i18n.language, { dateStyle: 'long' })}
|
|
83
87
|
</Typography>
|
|
84
|
-
<Typography
|
|
88
|
+
<Typography
|
|
89
|
+
sx={{
|
|
90
|
+
fontSize: 12,
|
|
91
|
+
}}
|
|
92
|
+
>
|
|
85
93
|
{startedAt.toLocaleString(i18n.language, {
|
|
86
94
|
timeStyle: 'short',
|
|
87
95
|
})}
|
|
88
96
|
</Typography>
|
|
89
97
|
</Box>
|
|
90
|
-
<Box
|
|
98
|
+
<Box
|
|
99
|
+
sx={{
|
|
100
|
+
px: 2,
|
|
101
|
+
py: 2,
|
|
102
|
+
}}
|
|
103
|
+
>
|
|
91
104
|
<Token token={fromToken} />
|
|
92
|
-
<Box
|
|
105
|
+
<Box
|
|
106
|
+
sx={{
|
|
107
|
+
pl: 2.375,
|
|
108
|
+
py: 0.5,
|
|
109
|
+
}}
|
|
110
|
+
>
|
|
93
111
|
<TokenDivider />
|
|
94
112
|
</Box>
|
|
95
113
|
<Token token={toToken} />
|
|
@@ -12,12 +12,12 @@ export const TransactionHistoryItemSkeleton = () => {
|
|
|
12
12
|
>
|
|
13
13
|
<Box
|
|
14
14
|
sx={{
|
|
15
|
+
pt: 2,
|
|
16
|
+
px: 2,
|
|
15
17
|
display: 'flex',
|
|
16
18
|
flex: 1,
|
|
17
19
|
justifyContent: 'space-between',
|
|
18
20
|
}}
|
|
19
|
-
pt={2}
|
|
20
|
-
px={2}
|
|
21
21
|
>
|
|
22
22
|
<Skeleton
|
|
23
23
|
variant="rectangular"
|
|
@@ -36,9 +36,19 @@ export const TransactionHistoryItemSkeleton = () => {
|
|
|
36
36
|
})}
|
|
37
37
|
/>
|
|
38
38
|
</Box>
|
|
39
|
-
<Box
|
|
39
|
+
<Box
|
|
40
|
+
sx={{
|
|
41
|
+
px: 2,
|
|
42
|
+
py: 2,
|
|
43
|
+
}}
|
|
44
|
+
>
|
|
40
45
|
<TokenSkeleton />
|
|
41
|
-
<Box
|
|
46
|
+
<Box
|
|
47
|
+
sx={{
|
|
48
|
+
pl: 2.375,
|
|
49
|
+
py: 0.5,
|
|
50
|
+
}}
|
|
51
|
+
>
|
|
42
52
|
<TokenDivider />
|
|
43
53
|
</Box>
|
|
44
54
|
<TokenSkeleton />
|
|
@@ -106,19 +106,46 @@ const ExchangeRateBottomSheetContent: React.FC<
|
|
|
106
106
|
).toFixed(2)
|
|
107
107
|
|
|
108
108
|
return (
|
|
109
|
-
<Box
|
|
109
|
+
<Box
|
|
110
|
+
ref={ref}
|
|
111
|
+
sx={{
|
|
112
|
+
p: 3,
|
|
113
|
+
}}
|
|
114
|
+
>
|
|
110
115
|
<CenterContainer>
|
|
111
116
|
<IconCircle status="warning" mb={1}>
|
|
112
117
|
<WarningRounded color="warning" />
|
|
113
118
|
</IconCircle>
|
|
114
|
-
<Typography
|
|
119
|
+
<Typography
|
|
120
|
+
sx={{
|
|
121
|
+
py: 1,
|
|
122
|
+
fontSize: 18,
|
|
123
|
+
fontWeight: 700,
|
|
124
|
+
}}
|
|
125
|
+
>
|
|
115
126
|
{t('warning.title.rateChanged')}
|
|
116
127
|
</Typography>
|
|
117
128
|
</CenterContainer>
|
|
118
|
-
<Typography
|
|
119
|
-
|
|
129
|
+
<Typography
|
|
130
|
+
sx={{
|
|
131
|
+
py: 1,
|
|
132
|
+
}}
|
|
133
|
+
>
|
|
134
|
+
{t('warning.message.rateChanged')}
|
|
135
|
+
</Typography>
|
|
136
|
+
<Box
|
|
137
|
+
sx={{
|
|
138
|
+
display: 'flex',
|
|
139
|
+
justifyContent: 'space-between',
|
|
140
|
+
mt: 1,
|
|
141
|
+
}}
|
|
142
|
+
>
|
|
120
143
|
<Typography>{t('main.quotedAmount')}</Typography>
|
|
121
|
-
<Typography
|
|
144
|
+
<Typography
|
|
145
|
+
sx={{
|
|
146
|
+
fontWeight: 600,
|
|
147
|
+
}}
|
|
148
|
+
>
|
|
122
149
|
{t('format.number', {
|
|
123
150
|
value: formatTokenAmount(
|
|
124
151
|
BigInt(data.oldToAmount),
|
|
@@ -128,9 +155,19 @@ const ExchangeRateBottomSheetContent: React.FC<
|
|
|
128
155
|
{data?.toToken.symbol}
|
|
129
156
|
</Typography>
|
|
130
157
|
</Box>
|
|
131
|
-
<Box
|
|
158
|
+
<Box
|
|
159
|
+
sx={{
|
|
160
|
+
display: 'flex',
|
|
161
|
+
justifyContent: 'space-between',
|
|
162
|
+
mt: 0.25,
|
|
163
|
+
}}
|
|
164
|
+
>
|
|
132
165
|
<Typography>{t('main.currentAmount')}</Typography>
|
|
133
|
-
<Typography
|
|
166
|
+
<Typography
|
|
167
|
+
sx={{
|
|
168
|
+
fontWeight: 600,
|
|
169
|
+
}}
|
|
170
|
+
>
|
|
134
171
|
{t('format.number', {
|
|
135
172
|
value: formatTokenAmount(
|
|
136
173
|
BigInt(data?.newToAmount),
|
|
@@ -140,15 +177,37 @@ const ExchangeRateBottomSheetContent: React.FC<
|
|
|
140
177
|
{data?.toToken.symbol}
|
|
141
178
|
</Typography>
|
|
142
179
|
</Box>
|
|
143
|
-
<Box
|
|
180
|
+
<Box
|
|
181
|
+
sx={{
|
|
182
|
+
display: 'flex',
|
|
183
|
+
justifyContent: 'space-between',
|
|
184
|
+
mt: 0.25,
|
|
185
|
+
}}
|
|
186
|
+
>
|
|
144
187
|
<Typography>{t('main.rateChange')}</Typography>
|
|
145
|
-
<Typography
|
|
188
|
+
<Typography
|
|
189
|
+
sx={{
|
|
190
|
+
fontWeight: 600,
|
|
191
|
+
}}
|
|
192
|
+
>
|
|
193
|
+
{rateChange}%
|
|
194
|
+
</Typography>
|
|
146
195
|
</Box>
|
|
147
|
-
<Box
|
|
196
|
+
<Box
|
|
197
|
+
sx={{
|
|
198
|
+
display: 'flex',
|
|
199
|
+
mt: 3,
|
|
200
|
+
}}
|
|
201
|
+
>
|
|
148
202
|
<Button variant="text" onClick={onCancel} fullWidth>
|
|
149
203
|
{t('button.cancel')}
|
|
150
204
|
</Button>
|
|
151
|
-
<Box
|
|
205
|
+
<Box
|
|
206
|
+
sx={{
|
|
207
|
+
display: 'flex',
|
|
208
|
+
p: 1,
|
|
209
|
+
}}
|
|
210
|
+
/>
|
|
152
211
|
<Button variant="contained" onClick={onContinue} fullWidth>
|
|
153
212
|
{t('button.continue')}
|
|
154
213
|
</Button>
|
|
@@ -249,7 +249,12 @@ export const StatusBottomSheetContent: React.FC<
|
|
|
249
249
|
(contractCompactComponent || contractSecondaryComponent)
|
|
250
250
|
|
|
251
251
|
return (
|
|
252
|
-
<Box
|
|
252
|
+
<Box
|
|
253
|
+
ref={ref}
|
|
254
|
+
sx={{
|
|
255
|
+
p: 3,
|
|
256
|
+
}}
|
|
257
|
+
>
|
|
253
258
|
{!showContractComponent ? (
|
|
254
259
|
<CenterContainer>
|
|
255
260
|
<IconCircle status={status} mb={1}>
|
|
@@ -270,7 +275,13 @@ export const StatusBottomSheetContent: React.FC<
|
|
|
270
275
|
</CenterContainer>
|
|
271
276
|
) : null}
|
|
272
277
|
<CenterContainer>
|
|
273
|
-
<Typography
|
|
278
|
+
<Typography
|
|
279
|
+
sx={{
|
|
280
|
+
py: 1,
|
|
281
|
+
fontSize: 18,
|
|
282
|
+
fontWeight: 700,
|
|
283
|
+
}}
|
|
284
|
+
>
|
|
274
285
|
{title}
|
|
275
286
|
</Typography>
|
|
276
287
|
</CenterContainer>
|
|
@@ -285,13 +296,25 @@ export const StatusBottomSheetContent: React.FC<
|
|
|
285
296
|
)}
|
|
286
297
|
{!showContractComponent ? (
|
|
287
298
|
primaryMessage ? (
|
|
288
|
-
<Typography
|
|
299
|
+
<Typography
|
|
300
|
+
sx={{
|
|
301
|
+
py: 1,
|
|
302
|
+
}}
|
|
303
|
+
>
|
|
304
|
+
{primaryMessage}
|
|
305
|
+
</Typography>
|
|
289
306
|
) : (
|
|
290
307
|
<MessageSkeleton />
|
|
291
308
|
)
|
|
292
309
|
) : null}
|
|
293
310
|
{secondaryMessage ? (
|
|
294
|
-
<Typography
|
|
311
|
+
<Typography
|
|
312
|
+
sx={{
|
|
313
|
+
py: 1,
|
|
314
|
+
}}
|
|
315
|
+
>
|
|
316
|
+
{secondaryMessage}
|
|
317
|
+
</Typography>
|
|
295
318
|
) : null}
|
|
296
319
|
<Box sx={{ display: 'flex', marginTop: 2, gap: 1.5 }}>
|
|
297
320
|
{hasEnumFlag(status, RouteExecutionStatus.Done) ? (
|
|
@@ -51,49 +51,116 @@ const TokenValueBottomSheetContent: React.FC<TokenValueBottomSheetProps> = ({
|
|
|
51
51
|
const fromAmountUSD = Number.parseFloat(route.fromAmountUSD)
|
|
52
52
|
const toAmountUSD = Number.parseFloat(route.toAmountUSD)
|
|
53
53
|
return (
|
|
54
|
-
<Box
|
|
54
|
+
<Box
|
|
55
|
+
ref={ref}
|
|
56
|
+
sx={{
|
|
57
|
+
p: 3,
|
|
58
|
+
}}
|
|
59
|
+
>
|
|
55
60
|
<CenterContainer>
|
|
56
61
|
<IconCircle status="warning" mb={1}>
|
|
57
62
|
<WarningRounded color="warning" />
|
|
58
63
|
</IconCircle>
|
|
59
|
-
<Typography
|
|
64
|
+
<Typography
|
|
65
|
+
sx={{
|
|
66
|
+
py: 1,
|
|
67
|
+
fontSize: 18,
|
|
68
|
+
fontWeight: 700,
|
|
69
|
+
}}
|
|
70
|
+
>
|
|
60
71
|
{t('warning.title.highValueLoss')}
|
|
61
72
|
</Typography>
|
|
62
73
|
</CenterContainer>
|
|
63
|
-
<Typography
|
|
64
|
-
|
|
74
|
+
<Typography
|
|
75
|
+
sx={{
|
|
76
|
+
py: 1,
|
|
77
|
+
}}
|
|
78
|
+
>
|
|
79
|
+
{t('warning.message.highValueLoss')}
|
|
80
|
+
</Typography>
|
|
81
|
+
<Box
|
|
82
|
+
sx={{
|
|
83
|
+
display: 'flex',
|
|
84
|
+
justifyContent: 'space-between',
|
|
85
|
+
mt: 1,
|
|
86
|
+
}}
|
|
87
|
+
>
|
|
65
88
|
<Typography>{t('main.sending')}</Typography>
|
|
66
|
-
<Typography
|
|
89
|
+
<Typography
|
|
90
|
+
sx={{
|
|
91
|
+
fontWeight: 600,
|
|
92
|
+
}}
|
|
93
|
+
>
|
|
67
94
|
{t('format.currency', { value: route.fromAmountUSD })}
|
|
68
95
|
</Typography>
|
|
69
96
|
</Box>
|
|
70
|
-
<Box
|
|
97
|
+
<Box
|
|
98
|
+
sx={{
|
|
99
|
+
display: 'flex',
|
|
100
|
+
justifyContent: 'space-between',
|
|
101
|
+
mt: 0.25,
|
|
102
|
+
}}
|
|
103
|
+
>
|
|
71
104
|
<Typography>{t('main.fees.network')}</Typography>
|
|
72
105
|
<FeeBreakdownTooltip gasCosts={gasCosts}>
|
|
73
|
-
<Typography
|
|
106
|
+
<Typography
|
|
107
|
+
sx={{
|
|
108
|
+
fontWeight: 600,
|
|
109
|
+
}}
|
|
110
|
+
>
|
|
74
111
|
{t('format.currency', { value: gasCostUSD })}
|
|
75
112
|
</Typography>
|
|
76
113
|
</FeeBreakdownTooltip>
|
|
77
114
|
</Box>
|
|
78
115
|
{feeCostUSD ? (
|
|
79
|
-
<Box
|
|
116
|
+
<Box
|
|
117
|
+
sx={{
|
|
118
|
+
display: 'flex',
|
|
119
|
+
justifyContent: 'space-between',
|
|
120
|
+
mt: 0.25,
|
|
121
|
+
}}
|
|
122
|
+
>
|
|
80
123
|
<Typography>{t('main.fees.provider')}</Typography>
|
|
81
124
|
<FeeBreakdownTooltip feeCosts={feeCosts}>
|
|
82
|
-
<Typography
|
|
125
|
+
<Typography
|
|
126
|
+
sx={{
|
|
127
|
+
fontWeight: 600,
|
|
128
|
+
}}
|
|
129
|
+
>
|
|
83
130
|
{t('format.currency', { value: feeCostUSD })}
|
|
84
131
|
</Typography>
|
|
85
132
|
</FeeBreakdownTooltip>
|
|
86
133
|
</Box>
|
|
87
134
|
) : null}
|
|
88
|
-
<Box
|
|
135
|
+
<Box
|
|
136
|
+
sx={{
|
|
137
|
+
display: 'flex',
|
|
138
|
+
justifyContent: 'space-between',
|
|
139
|
+
mt: 0.25,
|
|
140
|
+
}}
|
|
141
|
+
>
|
|
89
142
|
<Typography>{t('main.receiving')}</Typography>
|
|
90
|
-
<Typography
|
|
143
|
+
<Typography
|
|
144
|
+
sx={{
|
|
145
|
+
fontWeight: 600,
|
|
146
|
+
}}
|
|
147
|
+
>
|
|
91
148
|
{t('format.currency', { value: route.toAmountUSD })}
|
|
92
149
|
</Typography>
|
|
93
150
|
</Box>
|
|
94
|
-
<Box
|
|
151
|
+
<Box
|
|
152
|
+
sx={{
|
|
153
|
+
display: 'flex',
|
|
154
|
+
justifyContent: 'space-between',
|
|
155
|
+
mt: 0.25,
|
|
156
|
+
}}
|
|
157
|
+
>
|
|
95
158
|
<Typography>{t('main.valueLoss')}</Typography>
|
|
96
|
-
<Typography
|
|
159
|
+
<Typography
|
|
160
|
+
sx={{
|
|
161
|
+
fontWeight: 600,
|
|
162
|
+
}}
|
|
163
|
+
>
|
|
97
164
|
{calculateValueLossPercentage(
|
|
98
165
|
fromAmountUSD,
|
|
99
166
|
toAmountUSD,
|
|
@@ -103,11 +170,21 @@ const TokenValueBottomSheetContent: React.FC<TokenValueBottomSheetProps> = ({
|
|
|
103
170
|
%
|
|
104
171
|
</Typography>
|
|
105
172
|
</Box>
|
|
106
|
-
<Box
|
|
173
|
+
<Box
|
|
174
|
+
sx={{
|
|
175
|
+
display: 'flex',
|
|
176
|
+
mt: 3,
|
|
177
|
+
}}
|
|
178
|
+
>
|
|
107
179
|
<Button variant="text" onClick={onCancel} fullWidth>
|
|
108
180
|
{t('button.cancel')}
|
|
109
181
|
</Button>
|
|
110
|
-
<Box
|
|
182
|
+
<Box
|
|
183
|
+
sx={{
|
|
184
|
+
display: 'flex',
|
|
185
|
+
p: 1,
|
|
186
|
+
}}
|
|
187
|
+
/>
|
|
111
188
|
<Button variant="contained" onClick={onContinue} fullWidth>
|
|
112
189
|
{t('button.continue')}
|
|
113
190
|
</Button>
|
|
@@ -188,7 +188,12 @@ export const TransactionPage: React.FC = () => {
|
|
|
188
188
|
status === RouteExecutionStatus.Failed ? (
|
|
189
189
|
<>
|
|
190
190
|
<GasMessage mt={2} route={route} />
|
|
191
|
-
<Box
|
|
191
|
+
<Box
|
|
192
|
+
sx={{
|
|
193
|
+
mt: 2,
|
|
194
|
+
display: 'flex',
|
|
195
|
+
}}
|
|
196
|
+
>
|
|
192
197
|
<StartTransactionButton
|
|
193
198
|
text={getButtonText()}
|
|
194
199
|
onClick={handleStartClick}
|