@dynamic-labs/sdk-react-core 4.20.4 → 4.20.6
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 +22 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +12 -12
- package/src/functions.d.ts +1 -0
- package/src/index.cjs +5 -2
- package/src/index.d.ts +3 -1
- package/src/index.js +3 -2
- package/src/lib/Main.cjs +2 -2
- package/src/lib/Main.js +3 -3
- package/src/lib/components/ModalCard/ModalCard.cjs +3 -1
- package/src/lib/components/ModalCard/ModalCard.d.ts +2 -0
- package/src/lib/components/ModalCard/ModalCard.js +3 -1
- package/src/lib/components/UserWalletsList/UserWalletsList.cjs +2 -2
- package/src/lib/components/UserWalletsList/UserWalletsList.js +3 -3
- package/src/lib/context/DynamicContext/DynamicContext.cjs +3 -0
- package/src/lib/context/DynamicContext/DynamicContext.js +3 -0
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +8 -3
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +8 -3
- package/src/lib/context/UserWalletsContext/UserWalletsContext.cjs +2 -2
- package/src/lib/context/UserWalletsContext/UserWalletsContext.d.ts +1 -1
- package/src/lib/context/UserWalletsContext/UserWalletsContext.js +2 -2
- package/src/lib/data/api/api.cjs +5 -0
- package/src/lib/data/api/api.js +5 -0
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +1 -0
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +1 -0
- package/src/lib/locale/en/translation.cjs +15 -0
- package/src/lib/locale/en/translation.d.ts +15 -0
- package/src/lib/locale/en/translation.js +15 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/sessionStorage.cjs +12 -0
- package/src/lib/utils/constants/sessionStorage.d.ts +2 -0
- package/src/lib/utils/constants/sessionStorage.js +7 -0
- package/src/lib/utils/functions/clientSessionKeys/constants.cjs +8 -0
- package/src/lib/utils/functions/clientSessionKeys/constants.d.ts +1 -0
- package/src/lib/utils/functions/clientSessionKeys/constants.js +4 -0
- package/src/lib/utils/functions/clientSessionKeys/getClientSessionKeys.cjs +67 -0
- package/src/lib/utils/functions/clientSessionKeys/getClientSessionKeys.d.ts +17 -0
- package/src/lib/utils/functions/clientSessionKeys/getClientSessionKeys.js +58 -0
- package/src/lib/utils/functions/clientSessionKeys/index.d.ts +1 -0
- package/src/lib/utils/functions/clientSessionKeys/types.d.ts +5 -0
- package/src/lib/utils/functions/index.d.ts +2 -0
- package/src/lib/utils/functions/keyService/index.d.ts +1 -0
- package/src/lib/utils/{hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/utils.cjs → functions/keyService/keyService.cjs} +13 -1
- package/src/lib/utils/{hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/utils.d.ts → functions/keyService/keyService.d.ts} +1 -0
- package/src/lib/utils/{hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/utils.js → functions/keyService/keyService.js} +13 -2
- package/src/lib/utils/functions/usingV3Wallets/index.d.ts +1 -0
- package/src/lib/utils/hooks/index.d.ts +1 -0
- package/src/lib/utils/hooks/useClientSessionKeys/index.d.ts +1 -0
- package/src/lib/utils/hooks/useClientSessionKeys/useClientSessionKeys.cjs +63 -0
- package/src/lib/utils/hooks/useClientSessionKeys/useClientSessionKeys.d.ts +5 -0
- package/src/lib/utils/hooks/useClientSessionKeys/useClientSessionKeys.js +59 -0
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +4 -0
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +4 -0
- package/src/lib/utils/hooks/useDynamicWaas/constants.cjs +3 -1
- package/src/lib/utils/hooks/useDynamicWaas/constants.d.ts +2 -1
- package/src/lib/utils/hooks/useDynamicWaas/constants.js +3 -2
- package/src/lib/utils/hooks/useDynamicWaas/useDynamicWaas.cjs +75 -57
- package/src/lib/utils/hooks/useDynamicWaas/useDynamicWaas.d.ts +1 -1
- package/src/lib/utils/hooks/useDynamicWaas/useDynamicWaas.js +76 -58
- package/src/lib/utils/hooks/useEmbeddedWalletSessionKeys/useEmbeddedWalletSessionKeys.cjs +6 -17
- package/src/lib/utils/hooks/useEmbeddedWalletSessionKeys/useEmbeddedWalletSessionKeys.js +1 -12
- package/src/lib/utils/hooks/useFundWithWallet/useChooseLinkedWallet/useChooseLinkedWallet.cjs +1 -1
- package/src/lib/utils/hooks/useFundWithWallet/useChooseLinkedWallet/useChooseLinkedWallet.js +2 -2
- package/src/lib/utils/hooks/useFundWithWallet/useConnectWalletForFunding/useConnectWalletForFunding.cjs +1 -1
- package/src/lib/utils/hooks/useFundWithWallet/useConnectWalletForFunding/useConnectWalletForFunding.js +2 -2
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +1 -1
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +1 -1
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.cjs +3 -1
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.js +3 -1
- package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.cjs +1 -1
- package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.js +2 -2
- package/src/lib/utils/hooks/useSyncDynamicWaas/useSyncDynamicWaas.cjs +0 -5
- package/src/lib/utils/hooks/useSyncDynamicWaas/useSyncDynamicWaas.js +0 -5
- package/src/lib/utils/hooks/useWalletConnectors/utils/smartWallet/smartWallet.cjs +4 -1
- package/src/lib/utils/hooks/useWalletConnectors/utils/smartWallet/smartWallet.js +4 -1
- package/src/lib/utils/hooks/useWalletList/useWalletList.cjs +1 -1
- package/src/lib/utils/hooks/useWalletList/useWalletList.js +2 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +1 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/mapViewToComponent.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/mapViewToComponent.d.ts +13 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/mapViewToComponent.js +2 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/views/ConfirmExchangeTransferView/ConfirmExchangeTransferView.cjs +134 -0
- package/src/lib/widgets/DynamicWidget/views/ConfirmExchangeTransferView/ConfirmExchangeTransferView.d.ts +18 -0
- package/src/lib/widgets/DynamicWidget/views/ConfirmExchangeTransferView/ConfirmExchangeTransferView.js +130 -0
- package/src/lib/widgets/DynamicWidget/views/ConfirmExchangeTransferView/index.d.ts +1 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import '@dynamic-labs/utils';
|
|
5
|
+
import '../../../../components/Accordion/components/AccordionItem/AccordionItem.js';
|
|
6
|
+
import 'react';
|
|
7
|
+
import { ReactComponent as SvgArrowLeft } from '../../../../shared/assets/arrow-left.js';
|
|
8
|
+
import '@dynamic-labs/iconic';
|
|
9
|
+
import '../../../../context/ViewContext/ViewContext.js';
|
|
10
|
+
import '../../../../../../_virtual/_tslib.js';
|
|
11
|
+
import '@dynamic-labs/sdk-api-core';
|
|
12
|
+
import '../../../../shared/logger.js';
|
|
13
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
14
|
+
import '@dynamic-labs/wallet-book';
|
|
15
|
+
import { shortenWalletAddress } from '../../../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.js';
|
|
16
|
+
import '../../../../utils/constants/colors.js';
|
|
17
|
+
import '../../../../utils/constants/values.js';
|
|
18
|
+
import '../../../../shared/consts/index.js';
|
|
19
|
+
import '../../../../components/Alert/Alert.js';
|
|
20
|
+
import '../../../../events/dynamicEvents.js';
|
|
21
|
+
import '../../../../context/DynamicContext/DynamicContext.js';
|
|
22
|
+
import '../../../../store/state/loadingAndLifecycle/loadingAndLifecycle.js';
|
|
23
|
+
import '../../../../store/state/authMode/authMode.js';
|
|
24
|
+
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
25
|
+
import '../../../../context/ErrorContext/ErrorContext.js';
|
|
26
|
+
import '@dynamic-labs/multi-wallet';
|
|
27
|
+
import 'react-international-phone';
|
|
28
|
+
import '../../../../store/state/nonce/nonce.js';
|
|
29
|
+
import '../../../../store/state/projectSettings/projectSettings.js';
|
|
30
|
+
import '../../../../config/ApiEndpoint.js';
|
|
31
|
+
import '../../../../store/state/user/user.js';
|
|
32
|
+
import '../../../../locale/locale.js';
|
|
33
|
+
import '../../../../store/state/dynamicContextProps/dynamicContextProps.js';
|
|
34
|
+
import '../../../../store/state/primaryWalletId/primaryWalletId.js';
|
|
35
|
+
import '../../../../store/state/connectedWalletsInfo/connectedWalletsInfo.js';
|
|
36
|
+
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
37
|
+
import '../../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
38
|
+
import '../../../../context/UserWalletsContext/UserWalletsContext.js';
|
|
39
|
+
import '../../../../context/VerificationContext/VerificationContext.js';
|
|
40
|
+
import 'react-dom';
|
|
41
|
+
import '../../../../utils/functions/compareChains/compareChains.js';
|
|
42
|
+
import '../../../../views/Passkey/utils/findPrimaryEmbeddedChain/findPrimaryEmbeddedChain.js';
|
|
43
|
+
import '../../../../context/ThemeContext/ThemeContext.js';
|
|
44
|
+
import '../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/userFieldsSchema.js';
|
|
45
|
+
import 'bs58';
|
|
46
|
+
import '@dynamic-labs/types';
|
|
47
|
+
import '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
48
|
+
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
49
|
+
import '../../../../context/WalletContext/WalletContext.js';
|
|
50
|
+
import '../../../../utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.js';
|
|
51
|
+
import 'yup';
|
|
52
|
+
import '../../../../context/MockContext/MockContext.js';
|
|
53
|
+
import '../../../../views/CollectUserDataView/useFields.js';
|
|
54
|
+
import '../../../../context/FieldsStateContext/FieldsStateContext.js';
|
|
55
|
+
import '../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
56
|
+
import '@dynamic-labs/rpc-providers';
|
|
57
|
+
import '../../../../store/state/walletOptions/walletOptions.js';
|
|
58
|
+
import { PoweredByDynamic } from '../../../../components/PoweredByDynamic/PoweredByDynamic.js';
|
|
59
|
+
import '../../../../context/FooterAnimationContext/index.js';
|
|
60
|
+
import '../../../../components/ShadowDOM/ShadowDOM.js';
|
|
61
|
+
import '../../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
62
|
+
import '../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
63
|
+
import '../../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
64
|
+
import '../../../../components/OverlayCardBase/OverlayCardTarget/OverlayCardTarget.js';
|
|
65
|
+
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
66
|
+
import '../../components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
67
|
+
import { ModalCard } from '../../../../components/ModalCard/ModalCard.js';
|
|
68
|
+
import 'react-focus-lock';
|
|
69
|
+
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
70
|
+
import { Divider } from '../../../../components/Divider/Divider.js';
|
|
71
|
+
import { useWidgetContext } from '../../context/DynamicWidgetContext.js';
|
|
72
|
+
import { IconButton } from '../../../../components/IconButton/IconButton.js';
|
|
73
|
+
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
74
|
+
import { Image } from '../../../../components/Image/Image.js';
|
|
75
|
+
import { TypographyButton } from '../../../../components/TypographyButton/TypographyButton.js';
|
|
76
|
+
import 'formik';
|
|
77
|
+
import '../../../../utils/hooks/useSubdomainCheck/useSubdomainCheck.js';
|
|
78
|
+
import { ModalHeader } from '../../../../components/ModalHeader/ModalHeader.js';
|
|
79
|
+
import '../../../../store/state/sendBalances.js';
|
|
80
|
+
import '../../../../components/Input/Input.js';
|
|
81
|
+
import '../../../../components/OverlayCard/OverlayCard.js';
|
|
82
|
+
import '../../../../views/TransactionConfirmationView/TransactionConfirmationView.js';
|
|
83
|
+
import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
84
|
+
import '../ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
85
|
+
import '../../../../context/OnrampContext/OnrampContext.js';
|
|
86
|
+
import 'qrcode';
|
|
87
|
+
import '../ReceiveWalletFunds/ReceiveWalletFunds.js';
|
|
88
|
+
import '../../../../../index.js';
|
|
89
|
+
import '../../../../context/IpConfigurationContext/IpConfigurationContext.js';
|
|
90
|
+
import '../../../../context/ConnectWithOtpContext/ConnectWithOtpContext.js';
|
|
91
|
+
import '../../../DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
92
|
+
import '@hcaptcha/react-hcaptcha';
|
|
93
|
+
import '../../../../context/ErrorContext/hooks/useErrorText/useErrorText.js';
|
|
94
|
+
import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
95
|
+
import '../../helpers/convertExchangeKeyAndProviderEnum.js';
|
|
96
|
+
import '../../../../store/state/connectorsInitializing/connectorsInitializing.js';
|
|
97
|
+
import '../../../../store/state/tokenBalances.js';
|
|
98
|
+
import '../../../../shared/utils/functions/getInitialUrl/getInitialUrl.js';
|
|
99
|
+
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
100
|
+
import '../../../../components/IsBrowser/IsBrowser.js';
|
|
101
|
+
import '../../../../components/Popper/Popper/Popper.js';
|
|
102
|
+
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
103
|
+
|
|
104
|
+
const ConfirmExchangeTransferView = ({ amount, toAddress, exchange, token, accountIdentifier, fiatAmount, fee, feeInFiat, fiatCurrencySymbol, onSubmit, onBack, }) => {
|
|
105
|
+
const { t } = useTranslation();
|
|
106
|
+
const { goToInitialDynamicWidgetView } = useWidgetContext();
|
|
107
|
+
const backButton = (jsx(IconButton, { type: 'button', id: 'back-button', "data-testid": 'back-button', onClick: () => {
|
|
108
|
+
onBack();
|
|
109
|
+
}, children: jsx(SvgArrowLeft, {}) }));
|
|
110
|
+
return (jsxs("div", { className: 'confirm-exchange-transfer', children: [jsx(ModalHeader, { leading: backButton, children: jsx(Typography, { variant: 'title', children: t('dyn_exchange_transfer_confirmation.title') }) }), jsxs("div", { className: 'confirm-exchange-transfer__content', children: [jsx("div", { className: 'confirm-exchange-transfer__content__modal', children: jsxs(ModalCard, { border: false, sharpBorder: true, dropShadow: false, children: [jsxs("div", { className: 'confirm-exchange-transfer__content__modal__top', children: [jsxs("div", { className: 'confirm-exchange-transfer__content__modal__top__token', children: [(token === null || token === void 0 ? void 0 : token.logoURI) ? (jsx(Image, { src: token.logoURI, alt: token.symbol, className: 'confirm-exchange-transfer__content__modal__top__token__icon', dataTestId: 'confirm-exchange-transfer__content__modal__top__token__icon' })) : (jsx("div", { className: 'confirm-exchange-transfer__content__modal__top__token__icon--skeleton', "data-testid": 'confirm-exchange-transfer__content__modal__top__token__icon--skeleton' })), jsx(Typography, { variant: 'body_normal', className: 'confirm-exchange-transfer__content__modal__top__token__name', children: token === null || token === void 0 ? void 0 : token.symbol }), jsxs("div", { className: 'confirm-exchange-transfer__content__modal__top__token__balance-container', children: [jsx(Typography, { variant: 'body_normal', weight: 'medium', "data-testid": 'confirm-exchange-transfer_token-option__primary', children: t('dyn_exchange_transfer_confirmation.send', {
|
|
111
|
+
fiatCurrency: fiatAmount,
|
|
112
|
+
fiatCurrencySymbol,
|
|
113
|
+
}) }), jsx(Typography, { weight: 'medium', variant: 'body_small', color: 'secondary', "data-testid": 'confirm-exchange-transfer_token-option__secondary', children: `${amount} ${token === null || token === void 0 ? void 0 : token.symbol}` })] })] }), jsx(Divider, {})] }), jsxs("div", { className: 'confirm-exchange-transfer__content__modal__transaction', children: [jsxs("div", { className: 'confirm-exchange-transfer__content__modal__transaction__from', children: [jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'confirm-exchange-transfer__content__modal__transaction__from__title', "data-testid": 'confirm-exchange-transfer__content__modal__transaction__from__title', children: t('dyn_exchange_transfer_confirmation.from') }), jsx(Typography, { variant: 'body_normal', weight: 'regular', className: 'confirm-exchange-transfer__content__modal__transaction__from__exchange', "data-testid": 'confirm-exchange-transfer__content__modal__transaction__from__exchange', children: accountIdentifier
|
|
114
|
+
? `${(exchange === null || exchange === void 0 ? void 0 : exchange.charAt(0).toUpperCase()) + (exchange === null || exchange === void 0 ? void 0 : exchange.slice(1))} ${accountIdentifier}`
|
|
115
|
+
: `${(exchange === null || exchange === void 0 ? void 0 : exchange.charAt(0).toUpperCase()) + (exchange === null || exchange === void 0 ? void 0 : exchange.slice(1))}` })] }), jsx(Divider, {}), jsxs("div", { className: 'confirm-exchange-transfer__content__modal__transaction__from', children: [jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'confirm-exchange-transfer__content__modal__transaction__from__title', "data-testid": 'confirm-exchange-transfer__content__modal__transaction__from__title', children: t('dyn_exchange_transfer_confirmation.to') }), jsx(Typography, { variant: 'body_normal', weight: 'regular', className: 'confirm-exchange-transfer__content__modal__transaction__from__exchange', "data-testid": 'confirm-exchange-transfer__content__modal__transaction__from__exchange', children: shortenWalletAddress(toAddress) })] }), jsx(Divider, {}), jsxs("div", { className: 'confirm-exchange-transfer__content__modal__transaction__from', children: [jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'confirm-exchange-transfer__content__modal__transaction__from__title', "data-testid": 'confirm-exchange-transfer__content__modal__transaction__from__title', children: t('dyn_exchange_transfer_confirmation.fee') }), jsx(Typography, { variant: 'body_normal', weight: 'medium', className: 'confirm-exchange-transfer__content__modal__transaction__from__exchange', "data-testid": 'confirm-exchange-transfer__content__modal__transaction__from__exchange', children: fee
|
|
116
|
+
? `${fiatCurrencySymbol}${feeInFiat} (${fee} ${token === null || token === void 0 ? void 0 : token.symbol})`
|
|
117
|
+
: t('dyn_exchange_transfer_confirmation.fee_not_found') })] }), jsx(Divider, {}), jsxs("div", { className: 'confirm-exchange-transfer__content__modal__transaction__receive', children: [jsxs("div", { className: 'confirm-exchange-transfer__content__modal__transaction__receive__container', children: [jsx(Typography, { variant: 'body_normal', weight: 'bold', color: 'secondary', "data-testid": 'confirm-exchange-transfer__content__modal__transaction__receive__container', children: t('dyn_exchange_transfer_confirmation.receive') }), jsx(Typography, { weight: 'medium', variant: 'body_small', color: 'secondary', "data-testid": 'confirm-exchange-transfer__content__modal__transaction__receive__container__fees', children: fee
|
|
118
|
+
? t('dyn_exchange_transfer_confirmation.cost')
|
|
119
|
+
: t('dyn_exchange_transfer_confirmation.cost_no_fee') })] }), jsxs("div", { className: 'confirm-exchange-transfer__content__modal__transaction__receive__amount-container', children: [jsx(Typography, { variant: 'body_normal', weight: 'bold', "data-testid": 'confirm-exchange-transfer__content__modal__transaction__receive__container', children: fee && fiatAmount && feeInFiat
|
|
120
|
+
? `${fiatCurrencySymbol}${fiatAmount - feeInFiat}`
|
|
121
|
+
: `${fiatCurrencySymbol}${fiatAmount}` }), jsx(Typography, { weight: 'medium', variant: 'body_small', color: 'secondary', "data-testid": 'confirm-exchange-transfer__content__modal__transaction__receive__container__fees', children: fee && amount
|
|
122
|
+
? `${amount - fee} ${token === null || token === void 0 ? void 0 : token.symbol}`
|
|
123
|
+
: `${amount} ${token === null || token === void 0 ? void 0 : token.symbol}` })] })] })] })] }) }), jsx("div", { className: 'confirm-exchange-transfer__content__terms', children: jsx(ModalCard, { border: false, sharpBorder: true, dropShadow: false, children: jsx(Typography, { variant: 'body_small', weight: 'regular', className: 'confirm-exchange-transfer__content__modal__transaction__from__exchange', "data-testid": 'confirm-exchange-transfer__content__modal__transaction__from__exchange', children: t('dyn_exchange_transfer_confirmation.terms') }) }) }), jsxs("div", { className: 'confirm-exchange-transfer__content__buttons', children: [jsx("div", { className: 'confirm-exchange-transfer__content__buttons__button', children: jsx(TypographyButton, { dataTestId: 'cancel-button', buttonVariant: 'card', typographyProps: { weight: 'bold' }, className: 'confirm-exchange-transfer__content__buttons__button', onClick: () => {
|
|
124
|
+
goToInitialDynamicWidgetView();
|
|
125
|
+
}, children: t('dyn_exchange_transfer_confirmation.cancel') }) }), jsx("div", { className: 'confirm-exchange-transfer__content__buttons__button', children: jsx(TypographyButton, { dataTestId: 'confirm-button', buttonVariant: 'brand-primary', typographyProps: { color: 'white', weight: 'bold' }, className: 'confirm-exchange-transfer__content__buttons__button', onClick: () => {
|
|
126
|
+
onSubmit();
|
|
127
|
+
}, children: t('dyn_exchange_transfer_confirmation.confirm') }) })] })] }), jsx("div", { className: 'confirm-exchange-transfer__content__footer', children: jsx(PoweredByDynamic, { asFooter: true }) })] }));
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export { ConfirmExchangeTransferView };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ConfirmExchangeTransferView } from './ConfirmExchangeTransferView';
|