@dynamic-labs/sdk-react-core 4.5.1 → 4.5.2
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/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +12 -12
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +11 -40
- package/src/lib/components/NetworkPicker/NetworkPicker.d.ts +2 -6
- package/src/lib/components/NetworkPicker/NetworkPicker.js +12 -41
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.cjs +6 -8
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.d.ts +2 -4
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.js +6 -8
- package/src/lib/components/NetworkPicker/components/NetworkDropdown/NetworkDropdown.cjs +67 -0
- package/src/lib/components/NetworkPicker/components/NetworkDropdown/NetworkDropdown.d.ts +14 -0
- package/src/lib/components/NetworkPicker/components/NetworkDropdown/NetworkDropdown.js +63 -0
- package/src/lib/components/NetworkPicker/components/NetworkDropdown/index.d.ts +1 -0
- package/src/lib/components/NetworkPicker/components/{EvmNetworkControl/EvmNetworkControl.cjs → NetworkSwitchControl/NetworkSwitchControl.cjs} +27 -36
- package/src/lib/components/NetworkPicker/components/NetworkSwitchControl/NetworkSwitchControl.d.ts +16 -0
- package/src/lib/components/NetworkPicker/components/{EvmNetworkControl/EvmNetworkControl.js → NetworkSwitchControl/NetworkSwitchControl.js} +27 -35
- package/src/lib/components/NetworkPicker/components/NetworkSwitchControl/index.d.ts +1 -0
- package/src/lib/components/Portal/Portal.cjs +3 -2
- package/src/lib/components/Portal/Portal.js +3 -2
- package/src/lib/locale/en/translation.cjs +13 -29
- package/src/lib/locale/en/translation.d.ts +11 -27
- package/src/lib/locale/en/translation.js +13 -29
- package/src/lib/shared/assets/index.d.ts +1 -0
- package/src/lib/shared/assets/{currency.cjs → wallet-with-sunglasses.cjs} +14 -26
- package/src/lib/shared/assets/wallet-with-sunglasses.js +34 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.cjs +2 -4
- package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.d.ts +2 -2
- package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.js +2 -4
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +2 -4
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +2 -4
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +3 -4
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +3 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +6 -9
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +7 -10
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +2 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +2 -6
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/ReceiveExternalWalletFunds.cjs +98 -49
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/ReceiveExternalWalletFunds.js +94 -45
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/TokenSelectScreen/TokenOption/TokenOption.cjs +21 -10
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/TokenSelectScreen/TokenOption/TokenOption.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/TokenSelectScreen/TokenOption/TokenOption.js +21 -10
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/TokenSelectScreen/TokenSelectScreen.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/TokenSelectScreen/TokenSelectScreen.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/TokenSelectScreen/TokenSelectScreen.js +3 -3
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/types.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/calculateFiatBalance/calculateFiatBalance.cjs +27 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/calculateFiatBalance/calculateFiatBalance.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/calculateFiatBalance/calculateFiatBalance.js +23 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/calculateFiatBalance/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/convert/convert.cjs +4 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/convert/convert.js +4 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/convertScientificToDecimal/convertScientificToDecimal.cjs +33 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/convertScientificToDecimal/convertScientificToDecimal.d.ts +8 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/convertScientificToDecimal/convertScientificToDecimal.js +29 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/convertScientificToDecimal/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/formatValue.cjs +26 -27
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/formatValue.d.ts +6 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/formatValue.js +26 -27
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/isFiatToken/isFiatToken.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/isFiatToken/isFiatToken.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/isFiatToken/isFiatToken.js +2 -1
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useExchangeRatesForFunding/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useExchangeRatesForFunding/useExchangeRatesForFunding.cjs +32 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useExchangeRatesForFunding/useExchangeRatesForFunding.d.ts +9 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useExchangeRatesForFunding/useExchangeRatesForFunding.js +28 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useTokensForFunding/useTokensForFunding.cjs +27 -15
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useTokensForFunding/useTokensForFunding.js +27 -15
- package/src/lib/widgets/DynamicWidget/views/SettingsView/EmptyScreen/EmptyScreen.cjs +20 -0
- package/src/lib/widgets/DynamicWidget/views/SettingsView/EmptyScreen/EmptyScreen.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/SettingsView/EmptyScreen/EmptyScreen.js +16 -0
- package/src/lib/widgets/DynamicWidget/views/SettingsView/EmptyScreen/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.cjs +3 -6
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.js +3 -6
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.d.ts +0 -23
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/index.d.ts +0 -1
- package/src/lib/shared/assets/currency.js +0 -46
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var utils = require('@dynamic-labs/utils');
|
|
8
|
+
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
8
9
|
require('react');
|
|
9
10
|
var stroke = require('../../../../shared/assets/stroke.cjs');
|
|
10
11
|
require('@dynamic-labs/iconic');
|
|
@@ -17,7 +18,7 @@ require('../../../../../../_virtual/_tslib.cjs');
|
|
|
17
18
|
require('../../../../context/DynamicContext/DynamicContext.cjs');
|
|
18
19
|
require('@dynamic-labs/sdk-api-core');
|
|
19
20
|
require('../../../../shared/logger.cjs');
|
|
20
|
-
require('
|
|
21
|
+
var getChainIcon = require('../../../../shared/utils/functions/chain/getChainIcon.cjs');
|
|
21
22
|
require('@dynamic-labs/wallet-book');
|
|
22
23
|
require('../../../../utils/constants/colors.cjs');
|
|
23
24
|
require('../../../../utils/constants/values.cjs');
|
|
@@ -97,54 +98,44 @@ require('../../../IsBrowser/IsBrowser.cjs');
|
|
|
97
98
|
require('../../../Popper/Popper/Popper.cjs');
|
|
98
99
|
require('../../../Popper/PopperContext/PopperContext.cjs');
|
|
99
100
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
name: 'Ethereum',
|
|
106
|
-
};
|
|
107
|
-
const EvmNetworkControl = ({ evmNetworks, className = '', activeClassName = '', network, walletConnector, isOpen, setIsOpen, showNetworkName = false, }) => {
|
|
108
|
-
var _a;
|
|
109
|
-
const currentEvmNetwork = evmNetworks === null || evmNetworks === void 0 ? void 0 : evmNetworks.find((element) => network && element.chainId === utils.parseChainId(network));
|
|
110
|
-
if (evmNetworks && !evmNetworks.length) {
|
|
111
|
-
return (jsxRuntime.jsx("div", { "data-testid": 'EvmNetworkControl', className: classNames.classNames('evm-network-control__container evm-network-control__container--error', className), children: jsxRuntime.jsx(UnsupportedNetwork.UnsupportedNetwork, { showMsg: showNetworkName }) }));
|
|
101
|
+
const NetworkSwitchControl = ({ enabledNetworks, className = '', activeClassName = '', network, walletConnector, isOpen, setIsOpen, showNetworkName = false, }) => {
|
|
102
|
+
var _a, _b;
|
|
103
|
+
const currentNetwork = enabledNetworks.find((element) => network && element.chainId === utils.parseChainId(network));
|
|
104
|
+
if (!enabledNetworks.length) {
|
|
105
|
+
return (jsxRuntime.jsx("div", { "data-testid": 'NetworkSwitchControl', className: classNames.classNames('network-switch-control__container network-switch-control__container--error', className), children: jsxRuntime.jsx(UnsupportedNetwork.UnsupportedNetwork, { showMsg: showNetworkName }) }));
|
|
112
106
|
}
|
|
113
107
|
if (!network) {
|
|
114
|
-
// If this connector is not available, just show
|
|
115
|
-
//
|
|
116
|
-
if (
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
108
|
+
// If this connector is not available, just show the chain name and icon
|
|
109
|
+
// since it will never be able to load a network
|
|
110
|
+
if (!walletConnector.isAvailable) {
|
|
111
|
+
const FallbackChainIcon = getChainIcon.getChainIcon(walletConnector.connectedChain);
|
|
112
|
+
const fallbackChainName = (_a = walletConnectorCore.getChainInfo(walletConnector.connectedChain)) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
113
|
+
return (jsxRuntime.jsxs("div", { "data-testid": 'NetworkSwitchControl', className: classNames.classNames(className, 'network-switch-control__container'), children: [jsxRuntime.jsx(Icon.Icon, { size: 'small', children: jsxRuntime.jsx(FallbackChainIcon, {}) }), showNetworkName && (jsxRuntime.jsx(Typography.Typography, { className: 'network-switch-control__network-name', as: 'span', variant: 'body_small', children: fallbackChainName }))] }));
|
|
120
114
|
}
|
|
121
|
-
return (jsxRuntime.jsx("div", { "data-testid": '
|
|
115
|
+
return (jsxRuntime.jsx("div", { "data-testid": 'NetworkSwitchControl', className: classNames.classNames('network-switch-control__container', className), children: jsxRuntime.jsx(NetworkControlSkeleton.NetworkControlSkeleton, {}) }));
|
|
122
116
|
}
|
|
123
|
-
if (
|
|
124
|
-
const unsupportedNetworkClassName = classNames.classNames(className, '
|
|
117
|
+
if (enabledNetworks.length === 1) {
|
|
118
|
+
const unsupportedNetworkClassName = classNames.classNames(className, 'network-switch-control__container', 'network-switch-control__container--error', {
|
|
125
119
|
[activeClassName]: isOpen,
|
|
126
|
-
'evm-network-control__container': Boolean(walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.supportsNetworkSwitching()),
|
|
127
120
|
});
|
|
128
|
-
if (!
|
|
129
|
-
return (jsxRuntime.jsxs("button", { "data-testid": '
|
|
130
|
-
'
|
|
121
|
+
if (!currentNetwork) {
|
|
122
|
+
return (jsxRuntime.jsxs("button", { "data-testid": 'NetworkSwitchControl', type: 'button', onClick: () => setIsOpen(!isOpen), className: unsupportedNetworkClassName, children: [jsxRuntime.jsx(UnsupportedNetwork.UnsupportedNetwork, { showMsg: showNetworkName }), jsxRuntime.jsx(Icon.Icon, { color: 'text-primary', size: 'small', className: classNames.classNames('network-switch-control__arrow-icon', {
|
|
123
|
+
'network-switch-control__arrow-icon--active': isOpen,
|
|
131
124
|
}), children: jsxRuntime.jsx(stroke.ReactComponent, {}) })] }));
|
|
132
125
|
}
|
|
133
|
-
return (jsxRuntime.jsxs("div", { "data-testid": '
|
|
126
|
+
return (jsxRuntime.jsxs("div", { "data-testid": 'NetworkSwitchControl', onClick: () => network && setIsOpen(!isOpen), className: classNames.classNames('network-switch-control__container', {
|
|
134
127
|
[activeClassName]: isOpen,
|
|
135
|
-
}, className), children: [
|
|
128
|
+
}, className), children: [currentNetwork.iconUrls.length > 0 && (jsxRuntime.jsx(Icon.Icon, { size: 'small', children: jsxRuntime.jsx("img", { src: currentNetwork.iconUrls[0], alt: `${currentNetwork.name} icon` }) })), showNetworkName && (jsxRuntime.jsx(Typography.Typography, { className: 'network-switch-control__network-name', as: 'span', variant: 'body_small', children: currentNetwork.vanityName || currentNetwork.name }))] }));
|
|
136
129
|
}
|
|
137
|
-
return (jsxRuntime.jsxs("button", { "data-testid": '
|
|
130
|
+
return (jsxRuntime.jsxs("button", { "data-testid": 'NetworkSwitchControl', type: 'button', onClick: (e) => {
|
|
138
131
|
e.stopPropagation();
|
|
139
132
|
network && setIsOpen(!isOpen);
|
|
140
|
-
}, className: classNames.classNames(className, {
|
|
133
|
+
}, className: classNames.classNames(className, 'network-switch-control__container', {
|
|
141
134
|
[activeClassName]: isOpen,
|
|
142
|
-
'
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
'evm-network-control__arrow-icon--active': isOpen,
|
|
135
|
+
'network-switch-control__container--error': !(currentNetwork === null || currentNetwork === void 0 ? void 0 : currentNetwork.name),
|
|
136
|
+
}), children: [(currentNetwork === null || currentNetwork === void 0 ? void 0 : currentNetwork.name) ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [((_b = currentNetwork === null || currentNetwork === void 0 ? void 0 : currentNetwork.iconUrls) === null || _b === void 0 ? void 0 : _b[0]) && (jsxRuntime.jsx(Icon.Icon, { size: 'small', children: jsxRuntime.jsx("img", { src: currentNetwork.iconUrls[0], alt: `${currentNetwork.name} icon` }) })), showNetworkName && (jsxRuntime.jsx(Typography.Typography, { className: 'network-switch-control__network-name', as: 'span', variant: 'body_small', children: currentNetwork.vanityName || currentNetwork.name }))] })) : (jsxRuntime.jsx(UnsupportedNetwork.UnsupportedNetwork, { showMsg: showNetworkName })), enabledNetworks.length > 1 && (jsxRuntime.jsx(Icon.Icon, { color: 'text-primary', size: 'small', className: classNames.classNames('network-switch-control__arrow-icon', {
|
|
137
|
+
'network-switch-control__arrow-icon--active': isOpen,
|
|
146
138
|
}), children: jsxRuntime.jsx(stroke.ReactComponent, {}) }))] }));
|
|
147
139
|
};
|
|
148
140
|
|
|
149
|
-
exports.
|
|
150
|
-
exports.fallbackChainData = fallbackChainData;
|
|
141
|
+
exports.NetworkSwitchControl = NetworkSwitchControl;
|
package/src/lib/components/NetworkPicker/components/NetworkSwitchControl/NetworkSwitchControl.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { WalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
3
|
+
import { GenericNetwork } from '@dynamic-labs/types';
|
|
4
|
+
type Props = {
|
|
5
|
+
activeClassName?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
enabledNetworks: GenericNetwork[];
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
network: number | string | undefined;
|
|
11
|
+
setIsOpen: Dispatch<SetStateAction<boolean>>;
|
|
12
|
+
showNetworkName?: boolean;
|
|
13
|
+
walletConnector: WalletConnector;
|
|
14
|
+
};
|
|
15
|
+
export declare const NetworkSwitchControl: ({ enabledNetworks, className, activeClassName, network, walletConnector, isOpen, setIsOpen, showNetworkName, }: Props) => JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { parseChainId } from '@dynamic-labs/utils';
|
|
4
|
+
import { getChainInfo } from '@dynamic-labs/wallet-connector-core';
|
|
4
5
|
import 'react';
|
|
5
6
|
import { ReactComponent as SvgStroke } from '../../../../shared/assets/stroke.js';
|
|
6
7
|
import '@dynamic-labs/iconic';
|
|
@@ -13,7 +14,7 @@ import '../../../../../../_virtual/_tslib.js';
|
|
|
13
14
|
import '../../../../context/DynamicContext/DynamicContext.js';
|
|
14
15
|
import '@dynamic-labs/sdk-api-core';
|
|
15
16
|
import '../../../../shared/logger.js';
|
|
16
|
-
import '
|
|
17
|
+
import { getChainIcon } from '../../../../shared/utils/functions/chain/getChainIcon.js';
|
|
17
18
|
import '@dynamic-labs/wallet-book';
|
|
18
19
|
import '../../../../utils/constants/colors.js';
|
|
19
20
|
import '../../../../utils/constants/values.js';
|
|
@@ -93,53 +94,44 @@ import '../../../IsBrowser/IsBrowser.js';
|
|
|
93
94
|
import '../../../Popper/Popper/Popper.js';
|
|
94
95
|
import '../../../Popper/PopperContext/PopperContext.js';
|
|
95
96
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
name: 'Ethereum',
|
|
102
|
-
};
|
|
103
|
-
const EvmNetworkControl = ({ evmNetworks, className = '', activeClassName = '', network, walletConnector, isOpen, setIsOpen, showNetworkName = false, }) => {
|
|
104
|
-
var _a;
|
|
105
|
-
const currentEvmNetwork = evmNetworks === null || evmNetworks === void 0 ? void 0 : evmNetworks.find((element) => network && element.chainId === parseChainId(network));
|
|
106
|
-
if (evmNetworks && !evmNetworks.length) {
|
|
107
|
-
return (jsx("div", { "data-testid": 'EvmNetworkControl', className: classNames('evm-network-control__container evm-network-control__container--error', className), children: jsx(UnsupportedNetwork, { showMsg: showNetworkName }) }));
|
|
97
|
+
const NetworkSwitchControl = ({ enabledNetworks, className = '', activeClassName = '', network, walletConnector, isOpen, setIsOpen, showNetworkName = false, }) => {
|
|
98
|
+
var _a, _b;
|
|
99
|
+
const currentNetwork = enabledNetworks.find((element) => network && element.chainId === parseChainId(network));
|
|
100
|
+
if (!enabledNetworks.length) {
|
|
101
|
+
return (jsx("div", { "data-testid": 'NetworkSwitchControl', className: classNames('network-switch-control__container network-switch-control__container--error', className), children: jsx(UnsupportedNetwork, { showMsg: showNetworkName }) }));
|
|
108
102
|
}
|
|
109
103
|
if (!network) {
|
|
110
|
-
// If this connector is not available, just show
|
|
111
|
-
//
|
|
112
|
-
if (
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
104
|
+
// If this connector is not available, just show the chain name and icon
|
|
105
|
+
// since it will never be able to load a network
|
|
106
|
+
if (!walletConnector.isAvailable) {
|
|
107
|
+
const FallbackChainIcon = getChainIcon(walletConnector.connectedChain);
|
|
108
|
+
const fallbackChainName = (_a = getChainInfo(walletConnector.connectedChain)) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
109
|
+
return (jsxs("div", { "data-testid": 'NetworkSwitchControl', className: classNames(className, 'network-switch-control__container'), children: [jsx(Icon, { size: 'small', children: jsx(FallbackChainIcon, {}) }), showNetworkName && (jsx(Typography, { className: 'network-switch-control__network-name', as: 'span', variant: 'body_small', children: fallbackChainName }))] }));
|
|
116
110
|
}
|
|
117
|
-
return (jsx("div", { "data-testid": '
|
|
111
|
+
return (jsx("div", { "data-testid": 'NetworkSwitchControl', className: classNames('network-switch-control__container', className), children: jsx(NetworkControlSkeleton, {}) }));
|
|
118
112
|
}
|
|
119
|
-
if (
|
|
120
|
-
const unsupportedNetworkClassName = classNames(className, '
|
|
113
|
+
if (enabledNetworks.length === 1) {
|
|
114
|
+
const unsupportedNetworkClassName = classNames(className, 'network-switch-control__container', 'network-switch-control__container--error', {
|
|
121
115
|
[activeClassName]: isOpen,
|
|
122
|
-
'evm-network-control__container': Boolean(walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.supportsNetworkSwitching()),
|
|
123
116
|
});
|
|
124
|
-
if (!
|
|
125
|
-
return (jsxs("button", { "data-testid": '
|
|
126
|
-
'
|
|
117
|
+
if (!currentNetwork) {
|
|
118
|
+
return (jsxs("button", { "data-testid": 'NetworkSwitchControl', type: 'button', onClick: () => setIsOpen(!isOpen), className: unsupportedNetworkClassName, children: [jsx(UnsupportedNetwork, { showMsg: showNetworkName }), jsx(Icon, { color: 'text-primary', size: 'small', className: classNames('network-switch-control__arrow-icon', {
|
|
119
|
+
'network-switch-control__arrow-icon--active': isOpen,
|
|
127
120
|
}), children: jsx(SvgStroke, {}) })] }));
|
|
128
121
|
}
|
|
129
|
-
return (jsxs("div", { "data-testid": '
|
|
122
|
+
return (jsxs("div", { "data-testid": 'NetworkSwitchControl', onClick: () => network && setIsOpen(!isOpen), className: classNames('network-switch-control__container', {
|
|
130
123
|
[activeClassName]: isOpen,
|
|
131
|
-
}, className), children: [
|
|
124
|
+
}, className), children: [currentNetwork.iconUrls.length > 0 && (jsx(Icon, { size: 'small', children: jsx("img", { src: currentNetwork.iconUrls[0], alt: `${currentNetwork.name} icon` }) })), showNetworkName && (jsx(Typography, { className: 'network-switch-control__network-name', as: 'span', variant: 'body_small', children: currentNetwork.vanityName || currentNetwork.name }))] }));
|
|
132
125
|
}
|
|
133
|
-
return (jsxs("button", { "data-testid": '
|
|
126
|
+
return (jsxs("button", { "data-testid": 'NetworkSwitchControl', type: 'button', onClick: (e) => {
|
|
134
127
|
e.stopPropagation();
|
|
135
128
|
network && setIsOpen(!isOpen);
|
|
136
|
-
}, className: classNames(className, {
|
|
129
|
+
}, className: classNames(className, 'network-switch-control__container', {
|
|
137
130
|
[activeClassName]: isOpen,
|
|
138
|
-
'
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
'evm-network-control__arrow-icon--active': isOpen,
|
|
131
|
+
'network-switch-control__container--error': !(currentNetwork === null || currentNetwork === void 0 ? void 0 : currentNetwork.name),
|
|
132
|
+
}), children: [(currentNetwork === null || currentNetwork === void 0 ? void 0 : currentNetwork.name) ? (jsxs(Fragment, { children: [((_b = currentNetwork === null || currentNetwork === void 0 ? void 0 : currentNetwork.iconUrls) === null || _b === void 0 ? void 0 : _b[0]) && (jsx(Icon, { size: 'small', children: jsx("img", { src: currentNetwork.iconUrls[0], alt: `${currentNetwork.name} icon` }) })), showNetworkName && (jsx(Typography, { className: 'network-switch-control__network-name', as: 'span', variant: 'body_small', children: currentNetwork.vanityName || currentNetwork.name }))] })) : (jsx(UnsupportedNetwork, { showMsg: showNetworkName })), enabledNetworks.length > 1 && (jsx(Icon, { color: 'text-primary', size: 'small', className: classNames('network-switch-control__arrow-icon', {
|
|
133
|
+
'network-switch-control__arrow-icon--active': isOpen,
|
|
142
134
|
}), children: jsx(SvgStroke, {}) }))] }));
|
|
143
135
|
};
|
|
144
136
|
|
|
145
|
-
export {
|
|
137
|
+
export { NetworkSwitchControl };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NetworkSwitchControl } from './NetworkSwitchControl';
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var React = require('react');
|
|
7
8
|
var reactDom = require('react-dom');
|
|
8
9
|
var ReactFocusLock = require('react-focus-lock');
|
|
9
10
|
require('../Transition/ZoomTransition/ZoomTransition.cjs');
|
|
10
11
|
require('../Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
11
12
|
var OpacityTransition = require('../Transition/OpacityTransition/OpacityTransition.cjs');
|
|
12
13
|
require('../../../../_virtual/_tslib.cjs');
|
|
13
|
-
require('react');
|
|
14
14
|
require('../../events/dynamicEvents.cjs');
|
|
15
15
|
require('@dynamic-labs/utils');
|
|
16
16
|
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
@@ -127,7 +127,8 @@ const ModalComponent = ({ children, handleClose, withBackdrop = true, zIndex, wh
|
|
|
127
127
|
const Portal = ({ children, isShown, handleClose, withBackdrop, zIndex, transitionEvents, elementId = 'dynamic-modal', }) => {
|
|
128
128
|
const { createRootElement } = useElementById.useElementById();
|
|
129
129
|
const modalRootElementRef = createRootElement(elementId);
|
|
130
|
-
|
|
130
|
+
const whiteList = React.useCallback((node) => modalRootElementRef.current.contains(node), [modalRootElementRef]);
|
|
131
|
+
return reactDom.createPortal(jsxRuntime.jsx(ShadowDOM.ShadowDOM, { zIndex: zIndex, dataTestId: 'dynamic-modal-shadow', children: jsxRuntime.jsx(OpacityTransition.OpacityTransition, Object.assign({ isShown: isShown }, transitionEvents, { children: jsxRuntime.jsx(ModalComponent, { handleClose: handleClose, withBackdrop: withBackdrop, whiteList: whiteList, children: children }) })) }), modalRootElementRef.current);
|
|
131
132
|
};
|
|
132
133
|
|
|
133
134
|
exports.Portal = Portal;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { useCallback } from 'react';
|
|
3
4
|
import { createPortal } from 'react-dom';
|
|
4
5
|
import ReactFocusLock from 'react-focus-lock';
|
|
5
6
|
import '../Transition/ZoomTransition/ZoomTransition.js';
|
|
6
7
|
import '../Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
7
8
|
import { OpacityTransition } from '../Transition/OpacityTransition/OpacityTransition.js';
|
|
8
9
|
import '../../../../_virtual/_tslib.js';
|
|
9
|
-
import 'react';
|
|
10
10
|
import '../../events/dynamicEvents.js';
|
|
11
11
|
import '@dynamic-labs/utils';
|
|
12
12
|
import '../../context/DynamicContext/DynamicContext.js';
|
|
@@ -119,7 +119,8 @@ const ModalComponent = ({ children, handleClose, withBackdrop = true, zIndex, wh
|
|
|
119
119
|
const Portal = ({ children, isShown, handleClose, withBackdrop, zIndex, transitionEvents, elementId = 'dynamic-modal', }) => {
|
|
120
120
|
const { createRootElement } = useElementById();
|
|
121
121
|
const modalRootElementRef = createRootElement(elementId);
|
|
122
|
-
|
|
122
|
+
const whiteList = useCallback((node) => modalRootElementRef.current.contains(node), [modalRootElementRef]);
|
|
123
|
+
return createPortal(jsx(ShadowDOM, { zIndex: zIndex, dataTestId: 'dynamic-modal-shadow', children: jsx(OpacityTransition, Object.assign({ isShown: isShown }, transitionEvents, { children: jsx(ModalComponent, { handleClose: handleClose, withBackdrop: withBackdrop, whiteList: whiteList, children: children }) })) }), modalRootElementRef.current);
|
|
123
124
|
};
|
|
124
125
|
|
|
125
126
|
export { Portal };
|
|
@@ -932,13 +932,6 @@ const translation = {
|
|
|
932
932
|
* @description Settings for Dynamic settings view which are used inside dynamic widget
|
|
933
933
|
* @default
|
|
934
934
|
* {
|
|
935
|
-
global_section: {
|
|
936
|
-
title: 'Global',
|
|
937
|
-
currency: {
|
|
938
|
-
title: 'Currency',
|
|
939
|
-
badge: 'coming soon',
|
|
940
|
-
},
|
|
941
|
-
},
|
|
942
935
|
global_connectivity_section: {
|
|
943
936
|
title: 'Global Connectivity',
|
|
944
937
|
connected_apps_button: 'Connected Apps',
|
|
@@ -962,16 +955,12 @@ const translation = {
|
|
|
962
955
|
},
|
|
963
956
|
title: 'Settings',
|
|
964
957
|
button_logout: 'Log out',
|
|
958
|
+
empty_screen: {
|
|
959
|
+
title: 'Nothing to see here yet!',
|
|
960
|
+
},
|
|
965
961
|
}
|
|
966
962
|
*/
|
|
967
963
|
dyn_settings: {
|
|
968
|
-
global_section: {
|
|
969
|
-
title: 'Global',
|
|
970
|
-
currency: {
|
|
971
|
-
title: 'Currency',
|
|
972
|
-
badge: 'coming soon',
|
|
973
|
-
},
|
|
974
|
-
},
|
|
975
964
|
global_connectivity_section: {
|
|
976
965
|
title: 'Global Connectivity',
|
|
977
966
|
connected_apps_button: 'Connected Apps',
|
|
@@ -995,6 +984,9 @@ const translation = {
|
|
|
995
984
|
},
|
|
996
985
|
title: 'Settings',
|
|
997
986
|
button_logout: 'Log out',
|
|
987
|
+
empty_screen: {
|
|
988
|
+
title: 'Nothing to see here yet!',
|
|
989
|
+
},
|
|
998
990
|
},
|
|
999
991
|
/**
|
|
1000
992
|
* @description copy keys for global wallet view
|
|
@@ -2350,8 +2342,8 @@ const translation = {
|
|
|
2350
2342
|
* @description copy keys for the wallet funding flow
|
|
2351
2343
|
* @default
|
|
2352
2344
|
* {
|
|
2353
|
-
success: '
|
|
2354
|
-
success_txn_link: 'View
|
|
2345
|
+
success: 'Transaction processing',
|
|
2346
|
+
success_txn_link: 'View transaction',
|
|
2355
2347
|
|
|
2356
2348
|
funding_method_selection: {
|
|
2357
2349
|
title: 'Deposit',
|
|
@@ -2370,19 +2362,15 @@ const translation = {
|
|
|
2370
2362
|
funding_view: {
|
|
2371
2363
|
title: 'Fund from Wallet',
|
|
2372
2364
|
wallet_detail_from: 'From',
|
|
2373
|
-
balance: 'Balance',
|
|
2374
2365
|
confirm_button: 'Confirm Transaction',
|
|
2375
|
-
|
|
2376
|
-
'
|
|
2366
|
+
pricing_unavailable:
|
|
2367
|
+
'Pricing unavailable.',
|
|
2377
2368
|
minimum_error: 'Minimum {{minimum}}',
|
|
2378
2369
|
balance_error: 'Insufficient funds',
|
|
2379
2370
|
},
|
|
2380
2371
|
token_select: {
|
|
2381
2372
|
title: 'Select a Token',
|
|
2382
2373
|
search_placeholder: 'Search for a token',
|
|
2383
|
-
token_option: {
|
|
2384
|
-
balance_label: 'Balance',
|
|
2385
|
-
},
|
|
2386
2374
|
no_assets_title: 'No Supported Assets',
|
|
2387
2375
|
no_assets_description: 'This wallet does not support any assets',
|
|
2388
2376
|
},
|
|
@@ -2390,8 +2378,8 @@ const translation = {
|
|
|
2390
2378
|
}
|
|
2391
2379
|
*/
|
|
2392
2380
|
dyn_wallet_funding: {
|
|
2393
|
-
success: '
|
|
2394
|
-
success_txn_link: 'View
|
|
2381
|
+
success: 'Transaction processing',
|
|
2382
|
+
success_txn_link: 'View transaction',
|
|
2395
2383
|
funding_method_selection: {
|
|
2396
2384
|
title: 'Deposit',
|
|
2397
2385
|
qr_option: 'Receive by QR',
|
|
@@ -2409,18 +2397,14 @@ const translation = {
|
|
|
2409
2397
|
funding_view: {
|
|
2410
2398
|
title: 'Fund from External Wallet',
|
|
2411
2399
|
wallet_detail_from: 'From',
|
|
2412
|
-
balance: 'Balance',
|
|
2413
2400
|
confirm_button: 'Confirm Transaction',
|
|
2414
|
-
|
|
2401
|
+
pricing_unavailable: 'Pricing unavailable.',
|
|
2415
2402
|
minimum_error: 'Minimum {{minimum}}',
|
|
2416
2403
|
balance_error: 'Insufficient funds',
|
|
2417
2404
|
},
|
|
2418
2405
|
token_select: {
|
|
2419
2406
|
title: 'Select a Token',
|
|
2420
2407
|
search_placeholder: 'Search for a token',
|
|
2421
|
-
token_option: {
|
|
2422
|
-
balance_label: 'Balance',
|
|
2423
|
-
},
|
|
2424
2408
|
no_assets_title: 'No Supported Assets',
|
|
2425
2409
|
no_assets_description: 'No supported assets in this wallet',
|
|
2426
2410
|
},
|
|
@@ -926,13 +926,6 @@ export declare const translation: {
|
|
|
926
926
|
* @description Settings for Dynamic settings view which are used inside dynamic widget
|
|
927
927
|
* @default
|
|
928
928
|
* {
|
|
929
|
-
global_section: {
|
|
930
|
-
title: 'Global',
|
|
931
|
-
currency: {
|
|
932
|
-
title: 'Currency',
|
|
933
|
-
badge: 'coming soon',
|
|
934
|
-
},
|
|
935
|
-
},
|
|
936
929
|
global_connectivity_section: {
|
|
937
930
|
title: 'Global Connectivity',
|
|
938
931
|
connected_apps_button: 'Connected Apps',
|
|
@@ -956,16 +949,12 @@ export declare const translation: {
|
|
|
956
949
|
},
|
|
957
950
|
title: 'Settings',
|
|
958
951
|
button_logout: 'Log out',
|
|
952
|
+
empty_screen: {
|
|
953
|
+
title: 'Nothing to see here yet!',
|
|
954
|
+
},
|
|
959
955
|
}
|
|
960
956
|
*/
|
|
961
957
|
dyn_settings: {
|
|
962
|
-
global_section: {
|
|
963
|
-
title: string;
|
|
964
|
-
currency: {
|
|
965
|
-
title: string;
|
|
966
|
-
badge: string;
|
|
967
|
-
};
|
|
968
|
-
};
|
|
969
958
|
global_connectivity_section: {
|
|
970
959
|
title: string;
|
|
971
960
|
connected_apps_button: string;
|
|
@@ -991,6 +980,9 @@ export declare const translation: {
|
|
|
991
980
|
};
|
|
992
981
|
title: string;
|
|
993
982
|
button_logout: string;
|
|
983
|
+
empty_screen: {
|
|
984
|
+
title: string;
|
|
985
|
+
};
|
|
994
986
|
};
|
|
995
987
|
/**
|
|
996
988
|
* @description copy keys for global wallet view
|
|
@@ -2346,8 +2338,8 @@ export declare const translation: {
|
|
|
2346
2338
|
* @description copy keys for the wallet funding flow
|
|
2347
2339
|
* @default
|
|
2348
2340
|
* {
|
|
2349
|
-
success: '
|
|
2350
|
-
success_txn_link: 'View
|
|
2341
|
+
success: 'Transaction processing',
|
|
2342
|
+
success_txn_link: 'View transaction',
|
|
2351
2343
|
|
|
2352
2344
|
funding_method_selection: {
|
|
2353
2345
|
title: 'Deposit',
|
|
@@ -2366,19 +2358,15 @@ export declare const translation: {
|
|
|
2366
2358
|
funding_view: {
|
|
2367
2359
|
title: 'Fund from Wallet',
|
|
2368
2360
|
wallet_detail_from: 'From',
|
|
2369
|
-
balance: 'Balance',
|
|
2370
2361
|
confirm_button: 'Confirm Transaction',
|
|
2371
|
-
|
|
2372
|
-
'
|
|
2362
|
+
pricing_unavailable:
|
|
2363
|
+
'Pricing unavailable.',
|
|
2373
2364
|
minimum_error: 'Minimum {{minimum}}',
|
|
2374
2365
|
balance_error: 'Insufficient funds',
|
|
2375
2366
|
},
|
|
2376
2367
|
token_select: {
|
|
2377
2368
|
title: 'Select a Token',
|
|
2378
2369
|
search_placeholder: 'Search for a token',
|
|
2379
|
-
token_option: {
|
|
2380
|
-
balance_label: 'Balance',
|
|
2381
|
-
},
|
|
2382
2370
|
no_assets_title: 'No Supported Assets',
|
|
2383
2371
|
no_assets_description: 'This wallet does not support any assets',
|
|
2384
2372
|
},
|
|
@@ -2405,18 +2393,14 @@ export declare const translation: {
|
|
|
2405
2393
|
funding_view: {
|
|
2406
2394
|
title: string;
|
|
2407
2395
|
wallet_detail_from: string;
|
|
2408
|
-
balance: string;
|
|
2409
2396
|
confirm_button: string;
|
|
2410
|
-
|
|
2397
|
+
pricing_unavailable: string;
|
|
2411
2398
|
minimum_error: string;
|
|
2412
2399
|
balance_error: string;
|
|
2413
2400
|
};
|
|
2414
2401
|
token_select: {
|
|
2415
2402
|
title: string;
|
|
2416
2403
|
search_placeholder: string;
|
|
2417
|
-
token_option: {
|
|
2418
|
-
balance_label: string;
|
|
2419
|
-
};
|
|
2420
2404
|
no_assets_title: string;
|
|
2421
2405
|
no_assets_description: string;
|
|
2422
2406
|
};
|
|
@@ -928,13 +928,6 @@ const translation = {
|
|
|
928
928
|
* @description Settings for Dynamic settings view which are used inside dynamic widget
|
|
929
929
|
* @default
|
|
930
930
|
* {
|
|
931
|
-
global_section: {
|
|
932
|
-
title: 'Global',
|
|
933
|
-
currency: {
|
|
934
|
-
title: 'Currency',
|
|
935
|
-
badge: 'coming soon',
|
|
936
|
-
},
|
|
937
|
-
},
|
|
938
931
|
global_connectivity_section: {
|
|
939
932
|
title: 'Global Connectivity',
|
|
940
933
|
connected_apps_button: 'Connected Apps',
|
|
@@ -958,16 +951,12 @@ const translation = {
|
|
|
958
951
|
},
|
|
959
952
|
title: 'Settings',
|
|
960
953
|
button_logout: 'Log out',
|
|
954
|
+
empty_screen: {
|
|
955
|
+
title: 'Nothing to see here yet!',
|
|
956
|
+
},
|
|
961
957
|
}
|
|
962
958
|
*/
|
|
963
959
|
dyn_settings: {
|
|
964
|
-
global_section: {
|
|
965
|
-
title: 'Global',
|
|
966
|
-
currency: {
|
|
967
|
-
title: 'Currency',
|
|
968
|
-
badge: 'coming soon',
|
|
969
|
-
},
|
|
970
|
-
},
|
|
971
960
|
global_connectivity_section: {
|
|
972
961
|
title: 'Global Connectivity',
|
|
973
962
|
connected_apps_button: 'Connected Apps',
|
|
@@ -991,6 +980,9 @@ const translation = {
|
|
|
991
980
|
},
|
|
992
981
|
title: 'Settings',
|
|
993
982
|
button_logout: 'Log out',
|
|
983
|
+
empty_screen: {
|
|
984
|
+
title: 'Nothing to see here yet!',
|
|
985
|
+
},
|
|
994
986
|
},
|
|
995
987
|
/**
|
|
996
988
|
* @description copy keys for global wallet view
|
|
@@ -2346,8 +2338,8 @@ const translation = {
|
|
|
2346
2338
|
* @description copy keys for the wallet funding flow
|
|
2347
2339
|
* @default
|
|
2348
2340
|
* {
|
|
2349
|
-
success: '
|
|
2350
|
-
success_txn_link: 'View
|
|
2341
|
+
success: 'Transaction processing',
|
|
2342
|
+
success_txn_link: 'View transaction',
|
|
2351
2343
|
|
|
2352
2344
|
funding_method_selection: {
|
|
2353
2345
|
title: 'Deposit',
|
|
@@ -2366,19 +2358,15 @@ const translation = {
|
|
|
2366
2358
|
funding_view: {
|
|
2367
2359
|
title: 'Fund from Wallet',
|
|
2368
2360
|
wallet_detail_from: 'From',
|
|
2369
|
-
balance: 'Balance',
|
|
2370
2361
|
confirm_button: 'Confirm Transaction',
|
|
2371
|
-
|
|
2372
|
-
'
|
|
2362
|
+
pricing_unavailable:
|
|
2363
|
+
'Pricing unavailable.',
|
|
2373
2364
|
minimum_error: 'Minimum {{minimum}}',
|
|
2374
2365
|
balance_error: 'Insufficient funds',
|
|
2375
2366
|
},
|
|
2376
2367
|
token_select: {
|
|
2377
2368
|
title: 'Select a Token',
|
|
2378
2369
|
search_placeholder: 'Search for a token',
|
|
2379
|
-
token_option: {
|
|
2380
|
-
balance_label: 'Balance',
|
|
2381
|
-
},
|
|
2382
2370
|
no_assets_title: 'No Supported Assets',
|
|
2383
2371
|
no_assets_description: 'This wallet does not support any assets',
|
|
2384
2372
|
},
|
|
@@ -2386,8 +2374,8 @@ const translation = {
|
|
|
2386
2374
|
}
|
|
2387
2375
|
*/
|
|
2388
2376
|
dyn_wallet_funding: {
|
|
2389
|
-
success: '
|
|
2390
|
-
success_txn_link: 'View
|
|
2377
|
+
success: 'Transaction processing',
|
|
2378
|
+
success_txn_link: 'View transaction',
|
|
2391
2379
|
funding_method_selection: {
|
|
2392
2380
|
title: 'Deposit',
|
|
2393
2381
|
qr_option: 'Receive by QR',
|
|
@@ -2405,18 +2393,14 @@ const translation = {
|
|
|
2405
2393
|
funding_view: {
|
|
2406
2394
|
title: 'Fund from External Wallet',
|
|
2407
2395
|
wallet_detail_from: 'From',
|
|
2408
|
-
balance: 'Balance',
|
|
2409
2396
|
confirm_button: 'Confirm Transaction',
|
|
2410
|
-
|
|
2397
|
+
pricing_unavailable: 'Pricing unavailable.',
|
|
2411
2398
|
minimum_error: 'Minimum {{minimum}}',
|
|
2412
2399
|
balance_error: 'Insufficient funds',
|
|
2413
2400
|
},
|
|
2414
2401
|
token_select: {
|
|
2415
2402
|
title: 'Select a Token',
|
|
2416
2403
|
search_placeholder: 'Search for a token',
|
|
2417
|
-
token_option: {
|
|
2418
|
-
balance_label: 'Balance',
|
|
2419
|
-
},
|
|
2420
2404
|
no_assets_title: 'No Supported Assets',
|
|
2421
2405
|
no_assets_description: 'No supported assets in this wallet',
|
|
2422
2406
|
},
|
|
@@ -108,6 +108,7 @@ export { ReactComponent as WalletIllustrationIcon } from './wallet-illustration.
|
|
|
108
108
|
export { ReactComponent as WalletIconOutlineV2 } from './wallet-outline-v2.svg';
|
|
109
109
|
export { ReactComponent as WalletOutlineIcon } from './wallet-outline.svg';
|
|
110
110
|
export { ReactComponent as WalletV2Icon } from './wallet-v2.svg';
|
|
111
|
+
export { ReactComponent as WalletWithSunglassesIcon } from './wallet-with-sunglasses.svg';
|
|
111
112
|
export { ReactComponent as WalletIcon } from './wallet.svg';
|
|
112
113
|
export { PhantomLedgerIcon } from './wallets/PhantomLedgerIcon/PhantomLedgerIcon';
|
|
113
114
|
export { ReactComponent as WarningOrangeIcon } from './warning-orange.svg';
|