@lifi/widget 1.31.0 → 1.32.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/App.js +4 -16
- package/AppDrawer.js +13 -7
- package/AppDrawer.style.d.ts +2 -2
- package/AppDrawer.style.js +1 -1
- package/AppProvider.js +2 -2
- package/AppRoutes.js +9 -0
- package/cjs/App.js +4 -16
- package/cjs/AppDrawer.js +13 -7
- package/cjs/AppDrawer.style.d.ts +2 -2
- package/cjs/AppDrawer.style.js +1 -1
- package/cjs/AppProvider.js +1 -1
- package/cjs/AppRoutes.js +9 -0
- package/cjs/components/ActiveSwaps/ActiveSwapItem.js +9 -7
- package/cjs/components/ActiveSwaps/ActiveSwaps.js +3 -3
- package/cjs/components/ActiveSwaps/ActiveSwaps.style.d.ts +3 -3
- package/cjs/components/AppContainer.d.ts +2 -2
- package/cjs/components/AppContainer.js +1 -1
- package/cjs/components/BottomSheet/BottomSheet.d.ts +1 -1
- package/cjs/components/BottomSheet/BottomSheet.js +2 -2
- package/cjs/components/Card/Card.d.ts +2 -2
- package/cjs/components/Card/CardHeader.d.ts +1 -1
- package/cjs/components/Card/CardTitle.d.ts +1 -1
- package/cjs/components/ChainSelect/ChainSelect.d.ts +0 -1
- package/cjs/components/ChainSelect/ChainSelect.js +3 -4
- package/cjs/components/ChainSelect/ChainSelect.style.d.ts +3 -3
- package/cjs/components/ContractComponent/ContractComponent.js +1 -1
- package/cjs/components/Dialog.js +1 -1
- package/cjs/components/GasSufficiencyMessage/GasSufficiencyMessage.js +13 -28
- package/cjs/components/GasSufficiencyMessage/GasSufficiencyMessage.style.d.ts +1 -1
- package/cjs/components/Header/Header.js +1 -1
- package/cjs/components/Header/Header.style.d.ts +3 -3
- package/cjs/components/Header/NavigationHeader.js +6 -2
- package/cjs/components/Header/WalletHeader.js +12 -22
- package/cjs/{pages/SelectNativeTokenPage/SelectNativeTokenPage.style.d.ts → components/ListItemButton.d.ts} +1 -2
- package/cjs/{pages/SelectWalletPage/SelectWalletPage.style.js → components/ListItemButton.js} +2 -8
- package/cjs/components/ListItemText.d.ts +2 -0
- package/cjs/{pages/SelectNativeTokenPage/SelectNativeTokenPage.style.js → components/ListItemText.js} +1 -10
- package/cjs/components/NFT/NFT.js +2 -14
- package/cjs/components/NFT/NFT.style.d.ts +1 -1
- package/cjs/components/NotFound.js +2 -2
- package/cjs/components/PoweredBy/PoweredBy.js +2 -2
- package/cjs/components/PoweredBy/PoweredBy.style.d.ts +1 -1
- package/cjs/components/ProgressToNextUpdate/ProgressToNextUpdate.js +5 -17
- package/cjs/components/ReverseTokensButton/ReverseTokensButton.js +1 -1
- package/cjs/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +1 -1
- package/cjs/components/Select.js +1 -0
- package/cjs/components/SelectChainAndToken.js +4 -4
- package/cjs/components/SelectTokenButton/SelectTokenButton.js +2 -2
- package/cjs/components/SelectTokenButton/SelectTokenButton.style.d.ts +1 -1
- package/cjs/components/SendToWallet/SendToWallet.js +9 -19
- package/cjs/components/SendToWallet/SendToWallet.style.d.ts +1 -1
- package/cjs/components/SendToWallet/SendToWalletButton.js +5 -5
- package/cjs/components/SmallAvatar.d.ts +3 -3
- package/cjs/components/Step/CircularProgress.d.ts +0 -1
- package/cjs/components/Step/CircularProgress.js +2 -2
- package/cjs/components/Step/CircularProgress.style.d.ts +1 -1
- package/cjs/components/Step/DestinationWalletAddress.js +6 -7
- package/cjs/components/Step/GasStepProcess.js +8 -8
- package/cjs/components/Step/Step.js +4 -5
- package/cjs/components/Step/StepList.d.ts +0 -1
- package/cjs/components/Step/StepList.js +8 -4
- package/cjs/components/Step/StepProcess.js +3 -3
- package/cjs/components/Step/StepProcess.style.d.ts +2 -2
- package/cjs/components/Step/StepTimer.js +4 -8
- package/cjs/components/StepActions/StepActions.js +20 -37
- package/cjs/components/StepActions/StepActions.style.d.ts +1 -1
- package/cjs/components/StepDivider/StepDivider.style.d.ts +1 -1
- package/cjs/components/SwapButton/SwapButton.js +5 -14
- package/cjs/components/SwapInput/FormPriceHelperText.js +6 -6
- package/cjs/components/SwapInput/SwapInput.js +4 -16
- package/cjs/components/SwapInput/SwapInput.style.d.ts +1 -1
- package/cjs/components/SwapInput/SwapInputAdornment.style.d.ts +1 -1
- package/cjs/components/SwapInput/SwapInputEndAdornment.d.ts +0 -1
- package/cjs/components/SwapInput/SwapInputEndAdornment.js +2 -3
- package/cjs/components/SwapRouteCard/SwapRouteCard.js +9 -25
- package/cjs/components/SwapRouteCard/SwapRouteCard.style.d.ts +2 -2
- package/cjs/components/SwapRouteCard/SwapRouteCardSkeleton.js +4 -16
- package/cjs/components/SwapRouteCard/SwapRouteNotFoundCard.js +2 -2
- package/cjs/components/SwapRouteCard/utils.js +1 -1
- package/cjs/components/SwapRoutes/SwapRoutes.js +4 -4
- package/cjs/components/SwapRoutes/SwapRoutes.style.d.ts +5 -5
- package/cjs/components/SwapRoutes/SwapRoutesExpanded.d.ts +0 -1
- package/cjs/components/SwapRoutes/SwapRoutesExpanded.js +3 -3
- package/cjs/components/TextFitter/TextFitter.js +3 -3
- package/cjs/components/Token/Token.js +19 -33
- package/cjs/components/Token/Token.style.d.ts +3 -3
- package/cjs/components/TokenAvatar/TokenAvatar.js +6 -7
- package/cjs/components/TokenAvatar/TokenAvatar.style.d.ts +2 -2
- package/cjs/components/TokenList/TokenList.js +3 -4
- package/cjs/components/TokenList/TokenList.style.d.ts +2 -2
- package/cjs/components/TokenList/TokenList.style.js +2 -6
- package/cjs/components/TokenList/TokenListItem.js +9 -9
- package/cjs/components/TokenList/TokenNotFound.js +4 -5
- package/cjs/components/TokenList/VirtualizedTokenList.js +10 -11
- package/cjs/components/TokenList/useTokenSelect.js +2 -2
- package/cjs/config/env.js +1 -1
- package/cjs/config/sentry.js +3 -12
- package/cjs/config/theme.js +44 -16
- package/cjs/config/version.d.ts +1 -1
- package/cjs/config/version.js +1 -1
- package/cjs/hooks/useChain.js +1 -1
- package/cjs/hooks/useChains.js +5 -14
- package/cjs/hooks/useContentHeight.js +1 -2
- package/cjs/hooks/useFeaturedTokens.js +1 -4
- package/cjs/hooks/useGasSufficiency.js +28 -34
- package/cjs/hooks/useProcessMessage.js +7 -11
- package/cjs/hooks/useRouteExecution.js +17 -28
- package/cjs/hooks/useSwapRoutes.js +16 -26
- package/cjs/hooks/useToken.js +2 -2
- package/cjs/hooks/useTokenAddressBalance.js +1 -2
- package/cjs/hooks/useTokenBalance.js +24 -27
- package/cjs/hooks/useTokenBalances.d.ts +1 -1
- package/cjs/hooks/useTokenBalances.js +8 -20
- package/cjs/hooks/useTokenSearch.d.ts +1 -1
- package/cjs/hooks/useTokenSearch.js +12 -21
- package/cjs/hooks/useTokens.d.ts +1 -1
- package/cjs/hooks/useTokens.js +36 -38
- package/cjs/hooks/useTools.d.ts +2 -11
- package/cjs/hooks/useTools.js +10 -19
- package/cjs/i18n/en.json +8 -4
- package/cjs/icons/LiFiFullLogo.js +1 -1
- package/cjs/icons/LiFiLogo.js +1 -1
- package/cjs/icons/LiFiToolLogo.js +1 -1
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +2 -0
- package/cjs/pages/ActiveSwapsPage/ActiveSwapsEmpty.js +2 -2
- package/cjs/pages/ActiveSwapsPage/ActiveSwapsPage.d.ts +0 -1
- package/cjs/pages/ActiveSwapsPage/ActiveSwapsPage.js +3 -3
- package/cjs/pages/MainPage/MainPage.js +1 -1
- package/cjs/pages/MainPage/MainPage.style.d.ts +1 -1
- package/cjs/pages/MainPage/MainSwapButton.js +3 -12
- package/cjs/pages/SelectChainPage/SelectChainPage.js +6 -14
- package/cjs/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.d.ts +4 -0
- package/cjs/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.js +51 -0
- package/cjs/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.style.d.ts +20 -0
- package/cjs/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.style.js +8 -0
- package/cjs/pages/SelectEnabledToolsPage/index.d.ts +1 -0
- package/cjs/pages/SelectEnabledToolsPage/index.js +17 -0
- package/cjs/pages/SelectNativeTokenPage/SelectNativeTokenPage.js +4 -3
- package/cjs/pages/SelectTokenPage/SearchTokenInput.d.ts +0 -1
- package/cjs/pages/SelectTokenPage/SearchTokenInput.js +4 -1
- package/cjs/pages/SelectTokenPage/SelectTokenPage.js +2 -3
- package/cjs/pages/SelectWalletPage/SelectWalletPage.d.ts +0 -1
- package/cjs/pages/SelectWalletPage/SelectWalletPage.js +13 -19
- package/cjs/pages/SettingsPage/ColorSchemeButtonGroup.js +3 -3
- package/cjs/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +1 -1
- package/cjs/pages/SettingsPage/EnabledToolsButton.d.ts +4 -0
- package/cjs/pages/SettingsPage/EnabledToolsButton.js +25 -0
- package/cjs/pages/{SelectChainPage/SelectChainPage.style.d.ts → SettingsPage/EnabledToolsButton.style.d.ts} +1 -1
- package/cjs/pages/{SelectChainPage/SelectChainPage.style.js → SettingsPage/EnabledToolsButton.style.js} +7 -10
- package/cjs/pages/SettingsPage/GasPriceSelect.d.ts +0 -1
- package/cjs/pages/SettingsPage/GasPriceSelect.js +1 -1
- package/cjs/pages/SettingsPage/LanguageSelect.js +5 -6
- package/cjs/pages/SettingsPage/ResetSettingsButton.d.ts +2 -0
- package/cjs/pages/SettingsPage/ResetSettingsButton.js +27 -0
- package/cjs/pages/SettingsPage/RoutePrioritySelect.js +4 -4
- package/cjs/pages/SettingsPage/SettingsPage.d.ts +0 -1
- package/cjs/pages/SettingsPage/SettingsPage.js +3 -2
- package/cjs/pages/SettingsPage/ShowDestinationWallet.d.ts +0 -1
- package/cjs/pages/SettingsPage/ShowDestinationWallet.js +3 -3
- package/cjs/pages/SettingsPage/SlippageInput.d.ts +0 -1
- package/cjs/pages/SettingsPage/SlippageInput.js +3 -3
- package/cjs/pages/SwapDetailsPage/SwapDetailsPage.js +14 -22
- package/cjs/pages/SwapDetailsPage/SwapDetailsPage.style.d.ts +1 -1
- package/cjs/pages/SwapHistoryPage/SwapHistoryEmpty.js +2 -2
- package/cjs/pages/SwapHistoryPage/SwapHistoryItem.js +9 -7
- package/cjs/pages/SwapHistoryPage/SwapHistoryPage.js +2 -2
- package/cjs/pages/SwapPage/ExchangeRateBottomSheet.js +21 -26
- package/cjs/pages/SwapPage/StartSwapButton.js +1 -1
- package/cjs/pages/SwapPage/StatusBottomSheet.js +21 -19
- package/cjs/pages/SwapPage/StatusBottomSheet.style.d.ts +2 -2
- package/cjs/pages/SwapPage/SwapPage.js +9 -21
- package/cjs/pages/SwapPage/SwapPage.style.d.ts +1 -1
- package/cjs/pages/SwapPage/TokenValueBottomSheet.js +8 -9
- package/cjs/pages/SwapRoutesPage/SwapRoutesPage.js +3 -3
- package/cjs/pages/SwapRoutesPage/SwapRoutesPage.style.d.ts +1 -1
- package/cjs/providers/I18nProvider/I18nProvider.js +7 -8
- package/cjs/providers/SDKProvider/SDKProvider.js +15 -4
- package/cjs/providers/SwapFormProvider/SwapFormProvider.js +12 -6
- package/cjs/providers/SwapFormProvider/URLSearchParamsBuilder.js +3 -12
- package/cjs/providers/TelemetryProvider/TelemetryProvider.js +1 -1
- package/cjs/providers/ThemeProvider/ThemeProvider.js +2 -2
- package/cjs/providers/WalletProvider/WalletProvider.js +30 -39
- package/cjs/providers/WidgetProvider/WidgetProvider.js +18 -23
- package/cjs/providers/WidgetProvider/utils.js +2 -3
- package/cjs/stores/StoreProvider.js +2 -2
- package/cjs/stores/chains/ChainOrderStore.js +2 -14
- package/cjs/stores/routes/RouteExecutionStore.js +2 -14
- package/cjs/stores/routes/createRouteExecutionStore.js +27 -16
- package/cjs/stores/routes/useExecutingRoutesIds.js +2 -5
- package/cjs/stores/routes/useSwapHistory.js +3 -6
- package/cjs/stores/routes/utils.js +4 -4
- package/cjs/stores/settings/SettingsStore.js +10 -20
- package/cjs/stores/settings/createSettingsStore.js +29 -25
- package/cjs/stores/settings/types.d.ts +6 -6
- package/cjs/utils/colors.js +1 -1
- package/cjs/utils/format.js +3 -3
- package/cjs/utils/index.d.ts +0 -1
- package/cjs/utils/index.js +0 -1
- package/cjs/utils/navigationRoutes.d.ts +2 -0
- package/cjs/utils/navigationRoutes.js +6 -0
- package/components/ActiveSwaps/ActiveSwapItem.js +9 -7
- package/components/ActiveSwaps/ActiveSwaps.js +3 -3
- package/components/ActiveSwaps/ActiveSwaps.style.d.ts +3 -3
- package/components/AppContainer.d.ts +2 -2
- package/components/AppContainer.js +1 -1
- package/components/BottomSheet/BottomSheet.d.ts +1 -1
- package/components/BottomSheet/BottomSheet.js +2 -2
- package/components/Card/Card.d.ts +2 -2
- package/components/Card/CardHeader.d.ts +1 -1
- package/components/Card/CardTitle.d.ts +1 -1
- package/components/ChainSelect/ChainSelect.d.ts +0 -1
- package/components/ChainSelect/ChainSelect.js +3 -4
- package/components/ChainSelect/ChainSelect.style.d.ts +3 -3
- package/components/ContractComponent/ContractComponent.js +1 -1
- package/components/Dialog.js +1 -1
- package/components/GasSufficiencyMessage/GasSufficiencyMessage.js +13 -28
- package/components/GasSufficiencyMessage/GasSufficiencyMessage.style.d.ts +1 -1
- package/components/Header/Header.js +1 -1
- package/components/Header/Header.style.d.ts +3 -3
- package/components/Header/NavigationHeader.js +6 -2
- package/components/Header/WalletHeader.js +12 -22
- package/{pages/SelectChainPage/SelectChainPage.style.d.ts → components/ListItemButton.d.ts} +1 -2
- package/components/ListItemButton.js +11 -0
- package/components/ListItemText.d.ts +2 -0
- package/components/ListItemText.js +8 -0
- package/components/NFT/NFT.js +2 -14
- package/components/NFT/NFT.style.d.ts +1 -1
- package/components/NotFound.js +2 -2
- package/components/PoweredBy/PoweredBy.js +2 -2
- package/components/PoweredBy/PoweredBy.style.d.ts +1 -1
- package/components/ProgressToNextUpdate/ProgressToNextUpdate.js +5 -17
- package/components/ReverseTokensButton/ReverseTokensButton.js +1 -1
- package/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +1 -1
- package/components/Select.js +1 -0
- package/components/SelectChainAndToken.js +4 -4
- package/components/SelectTokenButton/SelectTokenButton.js +2 -2
- package/components/SelectTokenButton/SelectTokenButton.style.d.ts +1 -1
- package/components/SendToWallet/SendToWallet.js +9 -19
- package/components/SendToWallet/SendToWallet.style.d.ts +1 -1
- package/components/SendToWallet/SendToWalletButton.js +5 -5
- package/components/SmallAvatar.d.ts +3 -3
- package/components/Step/CircularProgress.d.ts +0 -1
- package/components/Step/CircularProgress.js +2 -2
- package/components/Step/CircularProgress.style.d.ts +1 -1
- package/components/Step/DestinationWalletAddress.js +6 -7
- package/components/Step/GasStepProcess.js +8 -8
- package/components/Step/Step.js +4 -5
- package/components/Step/StepList.d.ts +0 -1
- package/components/Step/StepList.js +8 -4
- package/components/Step/StepProcess.js +3 -3
- package/components/Step/StepProcess.style.d.ts +2 -2
- package/components/Step/StepTimer.js +4 -8
- package/components/StepActions/StepActions.js +20 -37
- package/components/StepActions/StepActions.style.d.ts +1 -1
- package/components/StepDivider/StepDivider.style.d.ts +1 -1
- package/components/SwapButton/SwapButton.js +5 -14
- package/components/SwapInput/FormPriceHelperText.js +6 -6
- package/components/SwapInput/SwapInput.js +4 -16
- package/components/SwapInput/SwapInput.style.d.ts +1 -1
- package/components/SwapInput/SwapInputAdornment.style.d.ts +1 -1
- package/components/SwapInput/SwapInputEndAdornment.d.ts +0 -1
- package/components/SwapInput/SwapInputEndAdornment.js +2 -3
- package/components/SwapRouteCard/SwapRouteCard.js +9 -25
- package/components/SwapRouteCard/SwapRouteCard.style.d.ts +2 -2
- package/components/SwapRouteCard/SwapRouteCardSkeleton.js +4 -16
- package/components/SwapRouteCard/SwapRouteNotFoundCard.js +2 -2
- package/components/SwapRouteCard/utils.js +1 -1
- package/components/SwapRoutes/SwapRoutes.js +4 -4
- package/components/SwapRoutes/SwapRoutes.style.d.ts +5 -5
- package/components/SwapRoutes/SwapRoutesExpanded.d.ts +0 -1
- package/components/SwapRoutes/SwapRoutesExpanded.js +3 -3
- package/components/TextFitter/TextFitter.js +3 -3
- package/components/Token/Token.js +19 -33
- package/components/Token/Token.style.d.ts +3 -3
- package/components/TokenAvatar/TokenAvatar.js +6 -7
- package/components/TokenAvatar/TokenAvatar.style.d.ts +2 -2
- package/components/TokenList/TokenList.js +3 -4
- package/components/TokenList/TokenList.style.d.ts +2 -2
- package/components/TokenList/TokenList.style.js +3 -7
- package/components/TokenList/TokenListItem.js +9 -9
- package/components/TokenList/TokenNotFound.js +4 -5
- package/components/TokenList/VirtualizedTokenList.js +10 -11
- package/components/TokenList/useTokenSelect.js +2 -2
- package/config/env.js +1 -1
- package/config/sentry.js +3 -12
- package/config/theme.js +44 -16
- package/config/version.d.ts +1 -1
- package/config/version.js +1 -1
- package/hooks/useChain.js +1 -1
- package/hooks/useChains.js +5 -14
- package/hooks/useContentHeight.js +1 -2
- package/hooks/useFeaturedTokens.js +1 -4
- package/hooks/useGasSufficiency.js +28 -34
- package/hooks/useProcessMessage.js +7 -11
- package/hooks/useRouteExecution.js +17 -28
- package/hooks/useSwapRoutes.js +16 -26
- package/hooks/useToken.js +2 -2
- package/hooks/useTokenAddressBalance.js +1 -2
- package/hooks/useTokenBalance.js +24 -27
- package/hooks/useTokenBalances.d.ts +1 -1
- package/hooks/useTokenBalances.js +8 -20
- package/hooks/useTokenSearch.d.ts +1 -1
- package/hooks/useTokenSearch.js +12 -21
- package/hooks/useTokens.d.ts +1 -1
- package/hooks/useTokens.js +36 -38
- package/hooks/useTools.d.ts +2 -11
- package/hooks/useTools.js +10 -19
- package/i18n/en.json +8 -4
- package/icons/LiFiFullLogo.js +1 -1
- package/icons/LiFiLogo.js +1 -1
- package/icons/LiFiToolLogo.js +1 -1
- package/index.d.ts +1 -0
- package/index.js +2 -0
- package/package.json +9 -9
- package/pages/ActiveSwapsPage/ActiveSwapsEmpty.js +2 -2
- package/pages/ActiveSwapsPage/ActiveSwapsPage.d.ts +0 -1
- package/pages/ActiveSwapsPage/ActiveSwapsPage.js +3 -3
- package/pages/MainPage/MainPage.js +1 -1
- package/pages/MainPage/MainPage.style.d.ts +1 -1
- package/pages/MainPage/MainSwapButton.js +3 -12
- package/pages/SelectChainPage/SelectChainPage.js +6 -14
- package/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.d.ts +4 -0
- package/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.js +47 -0
- package/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.style.d.ts +20 -0
- package/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.style.js +5 -0
- package/pages/SelectEnabledToolsPage/index.d.ts +1 -0
- package/pages/SelectEnabledToolsPage/index.js +1 -0
- package/pages/SelectNativeTokenPage/SelectNativeTokenPage.js +4 -3
- package/pages/SelectTokenPage/SearchTokenInput.d.ts +0 -1
- package/pages/SelectTokenPage/SearchTokenInput.js +4 -1
- package/pages/SelectTokenPage/SelectTokenPage.js +2 -3
- package/pages/SelectWalletPage/SelectWalletPage.d.ts +0 -1
- package/pages/SelectWalletPage/SelectWalletPage.js +13 -19
- package/pages/SettingsPage/ColorSchemeButtonGroup.js +3 -3
- package/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +1 -1
- package/pages/SettingsPage/EnabledToolsButton.d.ts +4 -0
- package/pages/SettingsPage/EnabledToolsButton.js +21 -0
- package/{cjs/pages/SelectWalletPage/SelectWalletPage.style.d.ts → pages/SettingsPage/EnabledToolsButton.style.d.ts} +1 -1
- package/pages/SettingsPage/EnabledToolsButton.style.js +14 -0
- package/pages/SettingsPage/GasPriceSelect.d.ts +0 -1
- package/pages/SettingsPage/GasPriceSelect.js +1 -1
- package/pages/SettingsPage/LanguageSelect.js +5 -6
- package/pages/SettingsPage/ResetSettingsButton.d.ts +2 -0
- package/pages/SettingsPage/ResetSettingsButton.js +23 -0
- package/pages/SettingsPage/RoutePrioritySelect.js +4 -4
- package/pages/SettingsPage/SettingsPage.d.ts +0 -1
- package/pages/SettingsPage/SettingsPage.js +3 -2
- package/pages/SettingsPage/ShowDestinationWallet.d.ts +0 -1
- package/pages/SettingsPage/ShowDestinationWallet.js +3 -3
- package/pages/SettingsPage/SlippageInput.d.ts +0 -1
- package/pages/SettingsPage/SlippageInput.js +3 -3
- package/pages/SwapDetailsPage/SwapDetailsPage.js +14 -22
- package/pages/SwapDetailsPage/SwapDetailsPage.style.d.ts +1 -1
- package/pages/SwapHistoryPage/SwapHistoryEmpty.js +2 -2
- package/pages/SwapHistoryPage/SwapHistoryItem.js +9 -7
- package/pages/SwapHistoryPage/SwapHistoryPage.js +2 -2
- package/pages/SwapPage/ExchangeRateBottomSheet.js +21 -26
- package/pages/SwapPage/StartSwapButton.js +1 -1
- package/pages/SwapPage/StatusBottomSheet.js +21 -19
- package/pages/SwapPage/StatusBottomSheet.style.d.ts +2 -2
- package/pages/SwapPage/SwapPage.js +9 -21
- package/pages/SwapPage/SwapPage.style.d.ts +1 -1
- package/pages/SwapPage/TokenValueBottomSheet.js +8 -9
- package/pages/SwapRoutesPage/SwapRoutesPage.js +3 -3
- package/pages/SwapRoutesPage/SwapRoutesPage.style.d.ts +1 -1
- package/providers/I18nProvider/I18nProvider.js +7 -8
- package/providers/SDKProvider/SDKProvider.js +15 -4
- package/providers/SwapFormProvider/SwapFormProvider.js +12 -6
- package/providers/SwapFormProvider/URLSearchParamsBuilder.js +3 -12
- package/providers/TelemetryProvider/TelemetryProvider.js +1 -1
- package/providers/ThemeProvider/ThemeProvider.js +2 -2
- package/providers/WalletProvider/WalletProvider.js +30 -39
- package/providers/WidgetProvider/WidgetProvider.js +18 -23
- package/providers/WidgetProvider/utils.js +2 -3
- package/stores/StoreProvider.js +2 -2
- package/stores/chains/ChainOrderStore.js +2 -14
- package/stores/routes/RouteExecutionStore.js +2 -14
- package/stores/routes/createRouteExecutionStore.js +27 -16
- package/stores/routes/useExecutingRoutesIds.js +2 -5
- package/stores/routes/useSwapHistory.js +3 -6
- package/stores/routes/utils.js +4 -4
- package/stores/settings/SettingsStore.js +10 -20
- package/stores/settings/createSettingsStore.js +29 -25
- package/stores/settings/types.d.ts +6 -6
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/utils/colors.js +1 -1
- package/utils/format.js +3 -3
- package/utils/index.d.ts +0 -1
- package/utils/index.js +0 -1
- package/utils/navigationRoutes.d.ts +2 -0
- package/utils/navigationRoutes.js +6 -0
- package/cjs/pages/SettingsPage/AdvancedPreferences.d.ts +0 -2
- package/cjs/pages/SettingsPage/AdvancedPreferences.js +0 -24
- package/cjs/pages/SettingsPage/EnabledBridgesSelect.d.ts +0 -2
- package/cjs/pages/SettingsPage/EnabledBridgesSelect.js +0 -24
- package/cjs/pages/SettingsPage/EnabledExchangesSelect.d.ts +0 -2
- package/cjs/pages/SettingsPage/EnabledExchangesSelect.js +0 -24
- package/cjs/utils/deepClone.d.ts +0 -1
- package/cjs/utils/deepClone.js +0 -7
- package/pages/SelectChainPage/SelectChainPage.style.js +0 -17
- package/pages/SelectNativeTokenPage/SelectNativeTokenPage.style.d.ts +0 -21
- package/pages/SelectNativeTokenPage/SelectNativeTokenPage.style.js +0 -17
- package/pages/SelectWalletPage/SelectWalletPage.style.d.ts +0 -21
- package/pages/SelectWalletPage/SelectWalletPage.style.js +0 -17
- package/pages/SettingsPage/AdvancedPreferences.d.ts +0 -2
- package/pages/SettingsPage/AdvancedPreferences.js +0 -20
- package/pages/SettingsPage/EnabledBridgesSelect.d.ts +0 -2
- package/pages/SettingsPage/EnabledBridgesSelect.js +0 -20
- package/pages/SettingsPage/EnabledExchangesSelect.d.ts +0 -2
- package/pages/SettingsPage/EnabledExchangesSelect.js +0 -20
- package/utils/deepClone.d.ts +0 -1
- package/utils/deepClone.js +0 -3
|
@@ -1,23 +1,15 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
2
|
import { Avatar, Container, List, ListItemAvatar } from '@mui/material';
|
|
12
3
|
import { useChainSelect } from '../../components/ChainSelect';
|
|
4
|
+
import { ListItemButton } from '../../components/ListItemButton';
|
|
5
|
+
import { ListItemText } from '../../components/ListItemText';
|
|
13
6
|
import { useTokenSelect } from '../../components/TokenList';
|
|
14
7
|
import { useNavigateBack } from '../../hooks';
|
|
15
|
-
import { ListItemButton, ListItemText } from './SelectChainPage.style';
|
|
16
8
|
export const SelectChainPage = ({ formType, selectNativeToken, }) => {
|
|
17
9
|
const { navigateBack } = useNavigateBack();
|
|
18
10
|
const { chains, setCurrentChain } = useChainSelect(formType);
|
|
19
11
|
const selectToken = useTokenSelect(formType, navigateBack);
|
|
20
|
-
const handleClick = (chain) =>
|
|
12
|
+
const handleClick = async (chain) => {
|
|
21
13
|
if (selectNativeToken) {
|
|
22
14
|
selectToken(chain.nativeToken.address, chain.id);
|
|
23
15
|
}
|
|
@@ -25,9 +17,9 @@ export const SelectChainPage = ({ formType, selectNativeToken, }) => {
|
|
|
25
17
|
setCurrentChain(chain.id);
|
|
26
18
|
navigateBack();
|
|
27
19
|
}
|
|
28
|
-
}
|
|
29
|
-
return (_jsx(Container,
|
|
20
|
+
};
|
|
21
|
+
return (_jsx(Container, { disableGutters: true, children: _jsx(List, { sx: {
|
|
30
22
|
paddingLeft: 1.5,
|
|
31
23
|
paddingRight: 1.5,
|
|
32
|
-
}
|
|
24
|
+
}, children: chains?.map((chain) => (_jsxs(ListItemButton, { onClick: () => handleClick(chain), disableRipple: true, children: [_jsx(ListItemAvatar, { children: _jsx(Avatar, { src: chain.logoURI, alt: chain.name, children: chain.name[0] }) }), _jsx(ListItemText, { primary: chain.name })] }, chain.id))) }) }));
|
|
33
25
|
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CheckBox, CheckBoxOutlineBlankOutlined, CheckBoxOutlined, IndeterminateCheckBoxOutlined, } from '@mui/icons-material';
|
|
3
|
+
import { Avatar, Container, IconButton, List, ListItemAvatar, } from '@mui/material';
|
|
4
|
+
import { useHeaderActionStore } from '../../components/Header';
|
|
5
|
+
import { useEffect } from 'react';
|
|
6
|
+
import { shallow } from 'zustand/shallow';
|
|
7
|
+
import { ListItemText } from '../../components/ListItemText';
|
|
8
|
+
import { useTools } from '../../hooks';
|
|
9
|
+
import { useSettingsStore } from '../../stores';
|
|
10
|
+
import { ListItemButton } from './SelectEnabledToolsPage.style';
|
|
11
|
+
export const SelectEnabledToolsPage = ({ type }) => {
|
|
12
|
+
const typeKey = type.toLowerCase();
|
|
13
|
+
const { tools } = useTools();
|
|
14
|
+
const [enabledTools, setTools] = useSettingsStore((state) => [state[`enabled${type}`], state.setTools], shallow);
|
|
15
|
+
const handleClick = (key) => {
|
|
16
|
+
if (!tools) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const toolKeys = tools[typeKey].map((tool) => tool.key);
|
|
20
|
+
if (enabledTools?.includes(key)) {
|
|
21
|
+
setTools(type, enabledTools.filter((toolKey) => toolKey !== key), toolKeys);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
setTools(type, [...enabledTools, key], toolKeys);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
const allToolsSelected = tools?.[typeKey].length === enabledTools.length;
|
|
29
|
+
const toggleCheckboxes = () => {
|
|
30
|
+
if (!tools) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const toolKeys = tools[typeKey].map((tool) => tool.key);
|
|
34
|
+
if (allToolsSelected) {
|
|
35
|
+
setTools(type, [], toolKeys);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
setTools(type, toolKeys, toolKeys);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
return useHeaderActionStore.getState().setAction(_jsx(IconButton, { size: "medium", edge: "end", onClick: toggleCheckboxes, children: allToolsSelected ? (_jsx(CheckBoxOutlined, {})) : enabledTools.length ? (_jsx(IndeterminateCheckBoxOutlined, {})) : (_jsx(CheckBoxOutlineBlankOutlined, {})) }));
|
|
42
|
+
}, [enabledTools.length, setTools, tools, type, typeKey]);
|
|
43
|
+
return (_jsx(Container, { disableGutters: true, children: _jsx(List, { sx: {
|
|
44
|
+
paddingLeft: 1.5,
|
|
45
|
+
paddingRight: 1.5,
|
|
46
|
+
}, children: tools?.[typeKey].map((tool) => (_jsxs(ListItemButton, { onClick: () => handleClick(tool.key), disableRipple: true, children: [_jsx(ListItemAvatar, { children: _jsx(Avatar, { src: tool.logoURI, alt: tool.name, children: tool.name[0] }) }), _jsx(ListItemText, { primary: tool.name }), enabledTools?.includes(tool.key) ? (_jsx(CheckBox, { color: "primary" })) : (_jsx(CheckBoxOutlineBlankOutlined, {}))] }, tool.name))) }) }));
|
|
47
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
|
|
3
|
+
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
4
|
+
centerRipple?: boolean | undefined;
|
|
5
|
+
children?: import("react").ReactNode;
|
|
6
|
+
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
7
|
+
disabled?: boolean | undefined;
|
|
8
|
+
disableRipple?: boolean | undefined;
|
|
9
|
+
disableTouchRipple?: boolean | undefined;
|
|
10
|
+
focusRipple?: boolean | undefined;
|
|
11
|
+
focusVisibleClassName?: string | undefined;
|
|
12
|
+
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
13
|
+
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
14
|
+
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
15
|
+
tabIndex?: number | undefined;
|
|
16
|
+
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
17
|
+
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
18
|
+
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
19
|
+
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
20
|
+
}, "className" | "style" | "classes" | "tabIndex" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "alignItems" | "autoFocus" | "dense" | "divider" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SelectEnabledToolsPage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SelectEnabledToolsPage';
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Container, List, ListItemAvatar } from '@mui/material';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import { ListItemButton } from '../../components/ListItemButton';
|
|
5
|
+
import { ListItemText } from '../../components/ListItemText';
|
|
4
6
|
import { TokenAvatar } from '../../components/TokenAvatar';
|
|
5
7
|
import { useTokenSelect } from '../../components/TokenList';
|
|
6
8
|
import { useChains, useNavigateBack } from '../../hooks';
|
|
7
|
-
import { ListItemButton, ListItemText } from './SelectNativeTokenPage.style';
|
|
8
9
|
export const SelectNativeTokenPage = ({ formType, }) => {
|
|
9
10
|
const { t } = useTranslation();
|
|
10
11
|
const { navigateBack } = useNavigateBack();
|
|
11
12
|
const { chains } = useChains();
|
|
12
13
|
const selectToken = useTokenSelect(formType, navigateBack);
|
|
13
|
-
return (_jsx(Container,
|
|
14
|
+
return (_jsx(Container, { disableGutters: true, children: _jsx(List, { sx: {
|
|
14
15
|
paddingLeft: 1.5,
|
|
15
16
|
paddingRight: 1.5,
|
|
16
|
-
}
|
|
17
|
+
}, children: chains?.map((chain) => (_jsxs(ListItemButton, { onClick: () => selectToken(chain.nativeToken.address, chain.id), disableRipple: true, children: [_jsx(ListItemAvatar, { children: _jsx(TokenAvatar, { token: chain.nativeToken, chain: chain }) }), _jsx(ListItemText, { primary: chain.nativeToken.symbol, secondary: t('swap.onChain', { chainName: chain.name }) })] }, chain.id))) }) }));
|
|
17
18
|
};
|
|
@@ -13,5 +13,8 @@ export const SearchTokenInput = () => {
|
|
|
13
13
|
useEffect(() => () => {
|
|
14
14
|
setValue(SwapFormKey.TokenSearchFilter, '');
|
|
15
15
|
}, [setValue]);
|
|
16
|
-
return (_jsx(Card, { children: _jsx(FormControl,
|
|
16
|
+
return (_jsx(Card, { children: _jsx(FormControl, { fullWidth: true, children: _jsx(Input, { size: "small", placeholder: t(`swap.tokenSearch`), defaultValue: "", endAdornment: _jsx(InputAdornment, { position: "end", children: _jsx(SearchIcon, {}) }), inputProps: {
|
|
17
|
+
inputMode: 'search',
|
|
18
|
+
...register(SwapFormKey.TokenSearchFilter),
|
|
19
|
+
}, autoComplete: "off" }) }) }));
|
|
17
20
|
};
|
|
@@ -13,8 +13,7 @@ export const SelectTokenPage = ({ formType }) => {
|
|
|
13
13
|
const contentHeight = useContentHeight();
|
|
14
14
|
const [tokenListHeight, setTokenListHeight] = useState(0);
|
|
15
15
|
useLayoutEffect(() => {
|
|
16
|
-
|
|
17
|
-
setTokenListHeight(Math.max(contentHeight - ((_b = (_a = headerRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight) !== null && _b !== void 0 ? _b : 0), minTokenListHeight));
|
|
16
|
+
setTokenListHeight(Math.max(contentHeight - (headerRef.current?.offsetHeight ?? 0), minTokenListHeight));
|
|
18
17
|
}, [contentHeight]);
|
|
19
|
-
return (_jsxs(Container,
|
|
18
|
+
return (_jsxs(Container, { disableGutters: true, children: [_jsxs(Box, { pt: 1, pb: 2, px: 3, ref: headerRef, children: [_jsx(ChainSelect, { formType: formType }), _jsx(Box, { mt: 2, children: _jsx(SearchTokenInput, {}) })] }), _jsx(TokenList, { height: tokenListHeight, onClick: navigateBack, formType: formType })] }));
|
|
20
19
|
};
|
|
@@ -1,31 +1,25 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
2
|
import { supportedWallets } from '@lifi/wallet-management';
|
|
12
3
|
import { Avatar, Button, Container, DialogActions, DialogContent, DialogContentText, List, ListItemAvatar, } from '@mui/material';
|
|
13
4
|
import { useCallback, useState } from 'react';
|
|
14
5
|
import { useTranslation } from 'react-i18next';
|
|
15
6
|
import { Dialog } from '../../components/Dialog';
|
|
7
|
+
import { ListItemButton } from '../../components/ListItemButton';
|
|
8
|
+
import { ListItemText } from '../../components/ListItemText';
|
|
16
9
|
import { useNavigateBack } from '../../hooks';
|
|
17
10
|
import { useWallet } from '../../providers';
|
|
18
|
-
import { ListItemButton, ListItemText } from './SelectWalletPage.style';
|
|
19
11
|
export const SelectWalletPage = () => {
|
|
20
|
-
var _a;
|
|
21
12
|
const { t } = useTranslation();
|
|
22
13
|
const { navigateBack } = useNavigateBack();
|
|
23
14
|
const { connect } = useWallet();
|
|
24
15
|
const [walletIdentity, setWalletIdentity] = useState({ show: false });
|
|
25
16
|
const closeDialog = () => {
|
|
26
|
-
setWalletIdentity((state) => (
|
|
17
|
+
setWalletIdentity((state) => ({
|
|
18
|
+
...state,
|
|
19
|
+
show: false,
|
|
20
|
+
}));
|
|
27
21
|
};
|
|
28
|
-
const handleConnect = useCallback((wallet) =>
|
|
22
|
+
const handleConnect = useCallback(async (wallet) => {
|
|
29
23
|
const { ethereum } = window;
|
|
30
24
|
const identityCheckPassed = wallet.checkProviderIdentity({
|
|
31
25
|
provider: ethereum,
|
|
@@ -38,12 +32,12 @@ export const SelectWalletPage = () => {
|
|
|
38
32
|
return;
|
|
39
33
|
}
|
|
40
34
|
navigateBack();
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
return (_jsxs(Container,
|
|
35
|
+
await connect(wallet);
|
|
36
|
+
}, [connect, navigateBack]);
|
|
37
|
+
return (_jsxs(Container, { disableGutters: true, children: [_jsx(List, { sx: {
|
|
44
38
|
paddingLeft: 1.5,
|
|
45
39
|
paddingRight: 1.5,
|
|
46
|
-
}
|
|
47
|
-
name:
|
|
48
|
-
}) }) }), _jsx(DialogActions, { children: _jsx(Button,
|
|
40
|
+
}, children: supportedWallets.map((wallet) => (_jsxs(ListItemButton, { onClick: () => handleConnect(wallet), disableRipple: true, children: [_jsx(ListItemAvatar, { children: _jsx(Avatar, { src: wallet.icon.src || wallet.icon, alt: wallet.name, children: wallet.name[0] }) }), _jsx(ListItemText, { primary: wallet.name })] }, wallet.name))) }), _jsxs(Dialog, { open: walletIdentity.show, onClose: closeDialog, children: [_jsx(DialogContent, { children: _jsx(DialogContentText, { children: t('wallet.extensionNotFound', {
|
|
41
|
+
name: walletIdentity.wallet?.name,
|
|
42
|
+
}) }) }), _jsx(DialogActions, { children: _jsx(Button, { variant: "contained", onClick: closeDialog, autoFocus: true, children: t('button.ok') }) })] })] }));
|
|
49
43
|
};
|
|
@@ -10,12 +10,12 @@ export const ColorSchemeButtonGroup = () => {
|
|
|
10
10
|
const { t } = useTranslation();
|
|
11
11
|
const { disableAppearance, hiddenUI } = useWidgetConfig();
|
|
12
12
|
const [appearance, setAppearance] = useAppearance();
|
|
13
|
-
if (disableAppearance ||
|
|
13
|
+
if (disableAppearance || hiddenUI?.includes(HiddenUI.Appearance)) {
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
|
-
return (_jsx(Box,
|
|
16
|
+
return (_jsx(Box, { pb: 2, children: _jsxs(ToggleButtonGroup, { color: "primary", value: appearance, onChange: (_, value) => {
|
|
17
17
|
if (value) {
|
|
18
18
|
setAppearance(value);
|
|
19
19
|
}
|
|
20
|
-
}, exclusive: true, fullWidth: true
|
|
20
|
+
}, exclusive: true, fullWidth: true, children: [_jsxs(ToggleButton, { value: "light", children: [_jsx(LightModeIcon, { sx: { marginRight: 1 } }), t('button.light')] }), _jsxs(ToggleButton, { value: "dark", children: [_jsx(DarkModeIcon, { sx: { marginRight: 1 } }), t('button.dark')] }), _jsxs(ToggleButton, { value: "auto", children: [_jsx(Brightness4Icon, { sx: { marginRight: 1 } }), t('button.auto')] })] }) }));
|
|
21
21
|
};
|
|
@@ -28,6 +28,6 @@ export declare const ToggleButton: import("@emotion/styled").StyledComponent<{
|
|
|
28
28
|
tabIndex?: number | undefined;
|
|
29
29
|
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
30
30
|
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
31
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<
|
|
31
|
+
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
32
32
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
33
33
|
}, keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "color" | "children" | "onChange" | "onClick" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "fullWidth" | "size" | "value" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronRight as ChevronRightIcon } from '@mui/icons-material';
|
|
3
|
+
import { Box } from '@mui/material';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import { useNavigate } from 'react-router-dom';
|
|
6
|
+
import { shallow } from 'zustand/shallow';
|
|
7
|
+
import { useSettingsStore } from '../../stores';
|
|
8
|
+
import { navigationRoutes } from '../../utils';
|
|
9
|
+
import { ListItemButton, ListItemText } from './EnabledToolsButton.style';
|
|
10
|
+
export const EnabledToolsButton = ({ type }) => {
|
|
11
|
+
const { t } = useTranslation();
|
|
12
|
+
const navigate = useNavigate();
|
|
13
|
+
const [enabledTools, tools] = useSettingsStore((state) => {
|
|
14
|
+
const enabledTools = Object.values(state[`_enabled${type}`] ?? {});
|
|
15
|
+
return [enabledTools.filter((tool) => tool).length, enabledTools.length];
|
|
16
|
+
}, shallow);
|
|
17
|
+
const handleClick = () => {
|
|
18
|
+
navigate(navigationRoutes[type.toLowerCase()]);
|
|
19
|
+
};
|
|
20
|
+
return (_jsxs(ListItemButton, { onClick: handleClick, disableRipple: true, children: [_jsx(ListItemText, { primary: t(`settings.enabled${type}`) }), _jsxs(Box, { display: "flex", alignItems: "center", children: [_jsx(ListItemText, { primary: `${enabledTools}/${tools}` }), _jsx(ChevronRightIcon, {})] })] }));
|
|
21
|
+
};
|
|
@@ -15,7 +15,7 @@ export declare const ListItemButton: import("@emotion/styled").StyledComponent<i
|
|
|
15
15
|
tabIndex?: number | undefined;
|
|
16
16
|
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
17
17
|
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
18
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<
|
|
18
|
+
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
19
19
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
20
20
|
}, "className" | "style" | "classes" | "tabIndex" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "alignItems" | "autoFocus" | "dense" | "divider" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
21
21
|
export declare const ListItemText: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemTextProps<import("react").ElementType<any>, import("react").ElementType<any>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ListItemText as MuiListItemText } from '@mui/material';
|
|
2
|
+
import { listItemTextClasses } from '@mui/material/ListItemText';
|
|
3
|
+
import { styled } from '@mui/material/styles';
|
|
4
|
+
import { ListItemButton as ListItemButtonBase } from '../../components/ListItemButton';
|
|
5
|
+
export const ListItemButton = styled(ListItemButtonBase)(({ theme }) => ({
|
|
6
|
+
height: 48,
|
|
7
|
+
paddingRight: theme.spacing(0.5),
|
|
8
|
+
}));
|
|
9
|
+
export const ListItemText = styled(MuiListItemText)({
|
|
10
|
+
[`.${listItemTextClasses.primary}`]: {
|
|
11
|
+
fontWeight: 400,
|
|
12
|
+
fontSize: '1rem',
|
|
13
|
+
},
|
|
14
|
+
});
|
|
@@ -9,5 +9,5 @@ export const GasPriceSelect = () => {
|
|
|
9
9
|
const { t } = useTranslation();
|
|
10
10
|
const setValue = useSettingsStore((state) => state.setValue);
|
|
11
11
|
const { gasPrice } = useSettings(['gasPrice']);
|
|
12
|
-
return (_jsxs(Card,
|
|
12
|
+
return (_jsxs(Card, { flex: 1, children: [_jsx(CardTitle, { children: t(`settings.gasPrice.title`) }), _jsx(FormControl, { fullWidth: true, children: _jsxs(Select, { MenuProps: { elevation: 2 }, value: gasPrice, onChange: (event) => setValue('gasPrice', event.target.value), IconComponent: KeyboardArrowDownIcon, dense: true, children: [_jsx(MenuItem, { value: "slow", children: t(`settings.gasPrice.slow`) }), _jsx(MenuItem, { value: "normal", children: t(`settings.gasPrice.normal`) }), _jsx(MenuItem, { value: "fast", children: t(`settings.gasPrice.fast`) })] }) })] }));
|
|
13
13
|
};
|
|
@@ -8,12 +8,11 @@ import { useWidgetConfig } from '../../providers';
|
|
|
8
8
|
import { useSettings, useSettingsStore } from '../../stores';
|
|
9
9
|
import { HiddenUI } from '../../types';
|
|
10
10
|
export const LanguageSelect = () => {
|
|
11
|
-
var _a;
|
|
12
11
|
const { t, i18n } = useTranslation();
|
|
13
12
|
const { languages, hiddenUI } = useWidgetConfig();
|
|
14
13
|
const setValue = useSettingsStore((state) => state.setValue);
|
|
15
14
|
const { language } = useSettings(['language']);
|
|
16
|
-
if (hiddenUI
|
|
15
|
+
if (hiddenUI?.includes(HiddenUI.Language)) {
|
|
17
16
|
return null;
|
|
18
17
|
}
|
|
19
18
|
const handleChangeLanguage = (event) => {
|
|
@@ -27,8 +26,8 @@ export const LanguageSelect = () => {
|
|
|
27
26
|
}
|
|
28
27
|
const value = filteredLanguages.includes(language || i18n.resolvedLanguage)
|
|
29
28
|
? language || i18n.resolvedLanguage
|
|
30
|
-
:
|
|
31
|
-
return (_jsxs(Card,
|
|
32
|
-
return (_jsx(MenuItem,
|
|
33
|
-
}) })
|
|
29
|
+
: languages?.default || languages?.allow?.[0];
|
|
30
|
+
return (_jsxs(Card, { mb: 2, children: [_jsx(CardTitle, { children: t(`language.title`) }), _jsx(FormControl, { fullWidth: true, children: _jsx(Select, { MenuProps: { elevation: 2 }, value: value, onChange: handleChangeLanguage, IconComponent: KeyboardArrowDownIcon, dense: true, children: filteredLanguages.map((lng) => {
|
|
31
|
+
return (_jsx(MenuItem, { value: lng, children: t('language.name', { lng }) }, lng));
|
|
32
|
+
}) }) })] }));
|
|
34
33
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Button, DialogActions, DialogContent, DialogContentText, DialogTitle, } from '@mui/material';
|
|
3
|
+
import { useCallback, useState } from 'react';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import { Dialog } from '../../components/Dialog';
|
|
6
|
+
import { useTools } from '../../hooks';
|
|
7
|
+
import { useSettingsStore } from '../../stores';
|
|
8
|
+
export const ResetSettingsButton = () => {
|
|
9
|
+
const { t } = useTranslation();
|
|
10
|
+
const { tools } = useTools();
|
|
11
|
+
const resetSettings = useSettingsStore((state) => state.reset);
|
|
12
|
+
const [open, setOpen] = useState(false);
|
|
13
|
+
const toggleDialog = useCallback(() => {
|
|
14
|
+
setOpen((open) => !open);
|
|
15
|
+
}, []);
|
|
16
|
+
const handleReset = () => {
|
|
17
|
+
if (tools) {
|
|
18
|
+
resetSettings(tools.bridges.map((tool) => tool.key), tools.exchanges.map((tool) => tool.key));
|
|
19
|
+
}
|
|
20
|
+
toggleDialog();
|
|
21
|
+
};
|
|
22
|
+
return (_jsxs(Box, { px: 3, mt: 1.5, children: [_jsx(Button, { onClick: toggleDialog, fullWidth: true, children: t('button.resetSettings') }), _jsxs(Dialog, { open: open, onClose: toggleDialog, children: [_jsx(DialogTitle, { children: t('swap.warning.title.resetSettings') }), _jsx(DialogContent, { children: _jsx(DialogContentText, { children: t('swap.warning.message.resetSettings') }) }), _jsxs(DialogActions, { children: [_jsx(Button, { onClick: toggleDialog, children: t('button.cancel') }), _jsx(Button, { variant: "contained", onClick: handleReset, autoFocus: true, children: t('button.reset') })] })] })] }));
|
|
23
|
+
};
|
|
@@ -10,10 +10,10 @@ export const RoutePrioritySelect = () => {
|
|
|
10
10
|
const { t } = useTranslation();
|
|
11
11
|
const setValue = useSettingsStore((state) => state.setValue);
|
|
12
12
|
const { routePriority } = useSettings(['routePriority']);
|
|
13
|
-
const value = routePriority
|
|
14
|
-
return (_jsxs(Card, { children: [_jsx(CardTitle, { children: t(`settings.routePriority`) }), _jsx(FormControl,
|
|
13
|
+
const value = routePriority ?? '';
|
|
14
|
+
return (_jsxs(Card, { children: [_jsx(CardTitle, { children: t(`settings.routePriority`) }), _jsx(FormControl, { fullWidth: true, children: _jsx(Select, { MenuProps: { elevation: 2 }, value: value, onChange: (event) => setValue('routePriority', event.target.value), IconComponent: KeyboardArrowDownIcon, dense: true, children: Orders.map((order) => {
|
|
15
15
|
const tag = t(`swap.tags.${order.toUpperCase()}`);
|
|
16
16
|
const tagName = `${tag[0]}${tag.slice(1).toLowerCase()}`;
|
|
17
|
-
return (_jsx(MenuItem,
|
|
18
|
-
}) })
|
|
17
|
+
return (_jsx(MenuItem, { value: order, children: tagName }, order));
|
|
18
|
+
}) }) })] }));
|
|
19
19
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Container } from '@mui/material';
|
|
3
|
-
import { AdvancedPreferences } from './AdvancedPreferences';
|
|
4
3
|
import { ColorSchemeButtonGroup } from './ColorSchemeButtonGroup';
|
|
4
|
+
import { EnabledToolsButton } from './EnabledToolsButton';
|
|
5
5
|
import { GasPriceSelect } from './GasPriceSelect';
|
|
6
6
|
import { LanguageSelect } from './LanguageSelect';
|
|
7
|
+
import { ResetSettingsButton } from './ResetSettingsButton';
|
|
7
8
|
import { RoutePrioritySelect } from './RoutePrioritySelect';
|
|
8
9
|
import { ShowDestinationWallet } from './ShowDestinationWallet';
|
|
9
10
|
import { SlippageInput } from './SlippageInput';
|
|
10
11
|
export const SettingsPage = () => {
|
|
11
|
-
return (_jsxs(Container,
|
|
12
|
+
return (_jsxs(Container, { disableGutters: true, children: [_jsxs(Box, { px: 3, pt: 1, children: [_jsx(ColorSchemeButtonGroup, {}), _jsx(LanguageSelect, {}), _jsx(RoutePrioritySelect, {}), _jsxs(Box, { sx: { display: 'flex', alignItems: 'center' }, mt: 2, children: [_jsx(Box, { pr: 2, flex: 1, children: _jsx(SlippageInput, {}) }), _jsx(GasPriceSelect, {})] })] }), _jsx(ShowDestinationWallet, {}), _jsxs(Box, { px: 1.5, children: [_jsx(EnabledToolsButton, { type: "Bridges" }), _jsx(EnabledToolsButton, { type: "Exchanges" })] }), _jsx(ResetSettingsButton, {})] }));
|
|
12
13
|
};
|
|
@@ -11,16 +11,16 @@ export const ShowDestinationWallet = () => {
|
|
|
11
11
|
const setSendToWallet = useSendToWalletStore((state) => state.setSendToWallet);
|
|
12
12
|
const setValue = useSettingsStore((state) => state.setValue);
|
|
13
13
|
const { showDestinationWallet } = useSettings(['showDestinationWallet']);
|
|
14
|
-
if (hiddenUI
|
|
14
|
+
if (hiddenUI?.includes(HiddenUI.ToAddress)) {
|
|
15
15
|
return null;
|
|
16
16
|
}
|
|
17
17
|
const onChange = (_, checked) => {
|
|
18
18
|
setValue('showDestinationWallet', checked);
|
|
19
19
|
setSendToWallet(false);
|
|
20
20
|
};
|
|
21
|
-
return (_jsx(Box,
|
|
21
|
+
return (_jsx(Box, { px: 3, pt: 2, pb: 1.5, children: _jsxs(Box, { sx: {
|
|
22
22
|
display: 'flex',
|
|
23
23
|
justifyContent: 'space-between',
|
|
24
24
|
alignItems: 'center',
|
|
25
|
-
}
|
|
25
|
+
}, children: [_jsx(Box, { sx: { display: 'flex', alignItems: 'center' }, children: _jsx(Typography, { variant: "subtitle1", color: "text.primary", lineHeight: "normal", children: t(`settings.showDestinationWallet`) }) }), _jsx(Switch, { checked: showDestinationWallet, onChange: onChange })] }) }));
|
|
26
26
|
};
|
|
@@ -19,8 +19,8 @@ export const SlippageInput = () => {
|
|
|
19
19
|
const { value } = event.target;
|
|
20
20
|
setValue('slippage', formatSlippage(value, defaultValue.current));
|
|
21
21
|
};
|
|
22
|
-
const value = slippage
|
|
23
|
-
return (_jsxs(Card, { children: [_jsx(CardTitle, { children: t(`settings.slippage`) }), _jsx(FormControl,
|
|
22
|
+
const value = slippage ?? '';
|
|
23
|
+
return (_jsxs(Card, { children: [_jsx(CardTitle, { children: t(`settings.slippage`) }), _jsx(FormControl, { fullWidth: true, children: _jsx(Input, { size: "small", placeholder: t(`settings.slippage`), endAdornment: _jsx(InputAdornment, { position: "end", children: "%" }), autoComplete: "off", inputProps: {
|
|
24
24
|
inputMode: 'decimal',
|
|
25
|
-
}, onChange: handleChange, onBlur: handleBlur, value: value }) })
|
|
25
|
+
}, onChange: handleChange, onBlur: handleBlur, value: value }) })] }));
|
|
26
26
|
};
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
2
|
import { ContentCopy as ContentCopyIcon, DeleteOutline as DeleteIcon, } from '@mui/icons-material';
|
|
12
3
|
import { Box, Button, DialogActions, DialogContent, DialogContentText, DialogTitle, IconButton, Typography, } from '@mui/material';
|
|
@@ -22,11 +13,10 @@ import { useNavigateBack } from '../../hooks';
|
|
|
22
13
|
import { useRouteExecutionStore } from '../../stores';
|
|
23
14
|
import { Container } from './SwapDetailsPage.style';
|
|
24
15
|
export const SwapDetailsPage = () => {
|
|
25
|
-
var _a, _b, _c, _d, _e, _f;
|
|
26
16
|
const { t, i18n } = useTranslation();
|
|
27
17
|
const { navigateBack } = useNavigateBack();
|
|
28
18
|
const { state } = useLocation();
|
|
29
|
-
const [routeExecution, deleteRoute] = useRouteExecutionStore((store) => [store.routes[state
|
|
19
|
+
const [routeExecution, deleteRoute] = useRouteExecutionStore((store) => [store.routes[state?.routeId], store.deleteRoute], shallow);
|
|
30
20
|
const [open, setOpen] = useState(false);
|
|
31
21
|
const toggleDialog = useCallback(() => {
|
|
32
22
|
setOpen((open) => !open);
|
|
@@ -37,25 +27,27 @@ export const SwapDetailsPage = () => {
|
|
|
37
27
|
deleteRoute(routeExecution.route.id);
|
|
38
28
|
}
|
|
39
29
|
};
|
|
40
|
-
let supportId =
|
|
30
|
+
let supportId = routeExecution?.route.steps[0].execution?.process.find((process) => process.txHash)?.txHash ??
|
|
31
|
+
routeExecution?.route.id ??
|
|
32
|
+
'';
|
|
41
33
|
if (process.env.NODE_ENV === 'development') {
|
|
42
|
-
supportId += `_${routeExecution
|
|
34
|
+
supportId += `_${routeExecution?.route.id}`;
|
|
43
35
|
}
|
|
44
|
-
const copySupportId = () =>
|
|
45
|
-
|
|
46
|
-
}
|
|
36
|
+
const copySupportId = async () => {
|
|
37
|
+
await navigator.clipboard.writeText(supportId);
|
|
38
|
+
};
|
|
47
39
|
useEffect(() => {
|
|
48
|
-
return useHeaderActionStore.getState().setAction(_jsx(IconButton,
|
|
40
|
+
return useHeaderActionStore.getState().setAction(_jsx(IconButton, { size: "medium", edge: "end", onClick: toggleDialog, children: _jsx(DeleteIcon, {}) }));
|
|
49
41
|
}, [toggleDialog]);
|
|
50
|
-
const startedAt = new Date(
|
|
51
|
-
return (_jsxs(Container, { children: [_jsxs(Box,
|
|
42
|
+
const startedAt = new Date(routeExecution?.route.steps[0].execution?.process[0].startedAt ?? 0);
|
|
43
|
+
return (_jsxs(Container, { children: [_jsxs(Box, { sx: {
|
|
52
44
|
display: 'flex',
|
|
53
45
|
flex: 1,
|
|
54
46
|
justifyContent: 'space-between',
|
|
55
|
-
}, pb: 1
|
|
47
|
+
}, pb: 1, children: [_jsx(Typography, { fontSize: 12, children: new Intl.DateTimeFormat(i18n.language, { dateStyle: 'long' }).format(startedAt) }), _jsx(Typography, { fontSize: 12, children: new Intl.DateTimeFormat(i18n.language, {
|
|
56
48
|
timeStyle: 'short',
|
|
57
|
-
}).format(startedAt) })
|
|
49
|
+
}).format(startedAt) })] }), getStepList(routeExecution?.route), _jsxs(Card, { mt: 2, children: [_jsxs(Box, { sx: {
|
|
58
50
|
display: 'flex',
|
|
59
51
|
flex: 1,
|
|
60
|
-
}
|
|
52
|
+
}, children: [_jsx(CardTitle, { flex: 1, children: t('swap.supportId') }), _jsx(Box, { mr: 1, mt: 1, children: _jsx(IconButton, { size: "medium", onClick: copySupportId, children: _jsx(ContentCopyIcon, { fontSize: "small" }) }) })] }), _jsx(Typography, { variant: "body2", pt: 1, pb: 2, px: 2, sx: { wordBreak: 'break-all' }, children: supportId })] }), _jsx(Box, { mt: 2, children: _jsx(Button, { href: "https://discord.com/channels/849912621360218112/863689862514343946", target: "_blank", rel: "nofollow noreferrer", fullWidth: true, children: t('button.contactSupport') }) }), _jsxs(Dialog, { open: open, onClose: toggleDialog, children: [_jsx(DialogTitle, { children: t('swap.warning.title.deleteSwap') }), _jsx(DialogContent, { children: _jsx(DialogContentText, { children: t('swap.warning.message.deleteSwapHistory') }) }), _jsxs(DialogActions, { children: [_jsx(Button, { onClick: toggleDialog, children: t('button.cancel') }), _jsx(Button, { variant: "contained", onClick: handleDeleteRoute, autoFocus: true, children: t('button.delete') })] })] })] }));
|
|
61
53
|
};
|
|
@@ -6,6 +6,6 @@ export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
|
6
6
|
fixed?: boolean | undefined;
|
|
7
7
|
maxWidth?: false | import("@mui/material").Breakpoint | undefined;
|
|
8
8
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
9
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<
|
|
9
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
10
|
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
11
11
|
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "maxWidth" | "fixed" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -4,12 +4,12 @@ import { Container, Typography } from '@mui/material';
|
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
5
|
export const SwapHistoryEmpty = () => {
|
|
6
6
|
const { t } = useTranslation();
|
|
7
|
-
return (_jsxs(Container,
|
|
7
|
+
return (_jsxs(Container, { sx: {
|
|
8
8
|
display: 'flex',
|
|
9
9
|
flex: 1,
|
|
10
10
|
flexDirection: 'column',
|
|
11
11
|
alignItems: 'center',
|
|
12
12
|
justifyContent: 'center',
|
|
13
13
|
paddingY: 12,
|
|
14
|
-
}
|
|
14
|
+
}, children: [_jsx(Typography, { fontSize: 48, children: _jsx(HistoryIcon, { fontSize: "inherit" }) }), _jsx(Typography, { fontSize: 18, fontWeight: 700, children: t('swap.info.title.emptySwapHistory') }), _jsx(Typography, { fontSize: 14, color: "text.secondary", textAlign: "center", mt: 2, children: t('swap.info.message.emptySwapHistory') })] }));
|
|
15
15
|
};
|