tek-wallet 0.0.762 → 0.0.764
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/dist/components/TekWallet/components/index.d.ts +2 -0
- package/dist/components/TekWallet/components/index.js +2 -0
- package/dist/components/TekWallet/components/layouts/ChildPageLayout/index.d.ts +6 -0
- package/dist/components/TekWallet/components/layouts/ChildPageLayout/index.js +2 -2
- package/dist/components/TekWallet/components/layouts/ChildPageLayout/style.d.ts +2 -0
- package/dist/components/TekWallet/components/layouts/ChildPageLayout/style.js +9 -0
- package/dist/components/TekWallet/components/ui/ActivitiesTypeSlice/index.d.ts +2 -0
- package/dist/components/TekWallet/components/ui/ActivitiesTypeSlice/index.js +6 -6
- package/dist/components/TekWallet/components/ui/ActivityDetail/index.js +5 -4
- package/dist/components/TekWallet/components/ui/ActivityItem/index.js +2 -2
- package/dist/components/TekWallet/components/ui/AnalyticGroupCenter/index.js +1 -1
- package/dist/components/TekWallet/components/ui/Button/index.js +2 -2
- package/dist/components/TekWallet/components/ui/DelayMounted/index.js +1 -1
- package/dist/components/TekWallet/components/ui/ListItemCustom/index.js +1 -1
- package/dist/components/TekWallet/components/ui/NetworkSelection/index.js +3 -1
- package/dist/components/TekWallet/components/ui/ReceiveFunction/index.js +126 -107
- package/dist/components/TekWallet/components/ui/SmartList/index.d.ts +2 -1
- package/dist/components/TekWallet/components/ui/SmartList/index.js +2 -2
- package/dist/components/TekWallet/components/ui/SwapFunction/index.js +36 -37
- package/dist/components/TekWallet/components/ui/TokenSelection/index.js +1 -1
- package/dist/components/TekWallet/components/ui/WaitingData/index.js +7 -6
- package/dist/components/TekWallet/components/views/ActivityView/index.js +5 -2
- package/dist/components/TekWallet/components/views/AssetView/index.js +15 -6
- package/dist/components/TekWallet/components/views/DetailActivityView/index.js +1 -1
- package/dist/components/TekWallet/components/views/NotFoundView/index.js +31 -1
- package/dist/components/TekWallet/components/views/SendExternalView/components/Form.js +73 -69
- package/dist/components/TekWallet/components/views/SendExternalView/index.js +1 -7
- package/dist/components/TekWallet/components/views/SendInternalView/components/Form.js +60 -59
- package/dist/components/TekWallet/components/views/SendInternalView/index.js +1 -1
- package/dist/components/TekWallet/components/views/SettingView/index.js +47 -5
- package/dist/components/TekWallet/components/views/SwapView/components/FromCard/index.js +7 -6
- package/dist/components/TekWallet/components/views/SwapView/index.d.ts +1 -10
- package/dist/components/TekWallet/components/views/SwapView/index.js +3 -27
- package/dist/components/TekWallet/components/views/TekWalletView/index.js +0 -1
- package/dist/components/TekWallet/providers/ActivitiesProvider/const.d.ts +1 -1
- package/dist/components/TekWallet/providers/ActivitiesProvider/const.js +1 -1
- package/dist/components/TekWallet/providers/TekWalletProvider/index.d.ts +6 -0
- package/dist/components/TekWallet/providers/TekWalletProvider/index.js +7 -1
- package/dist/components/TekWallet/theme/mui/theme.js +2 -2
- package/package.json +1 -1
|
@@ -57,7 +57,6 @@ var SwiperControlled_1 = __importDefault(require("../SwiperControlled"));
|
|
|
57
57
|
var react_2 = require("swiper/react");
|
|
58
58
|
var material_1 = require("@mui/material");
|
|
59
59
|
var Button_1 = __importDefault(require("../Button"));
|
|
60
|
-
var RequireConnect_1 = __importDefault(require("../RequireConnect"));
|
|
61
60
|
var ThemeProvider_1 = require("../../../providers/ThemeProvider");
|
|
62
61
|
var ChildPageLayout_1 = __importDefault(require("../../layouts/ChildPageLayout"));
|
|
63
62
|
var FromCard_1 = __importDefault(require("../../views/SwapView/components/FromCard"));
|
|
@@ -111,13 +110,13 @@ exports.SwapFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
111
110
|
setNumber(null);
|
|
112
111
|
}
|
|
113
112
|
};
|
|
114
|
-
var gotoStep = function (step) {
|
|
113
|
+
var gotoStep = (0, react_1.useCallback)(function (step) {
|
|
115
114
|
var _a;
|
|
116
115
|
if (step === SwapStep.SELECT_SWAP) {
|
|
117
116
|
}
|
|
118
117
|
setCurrentStep(step);
|
|
119
118
|
(_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.slideTo(step);
|
|
120
|
-
};
|
|
119
|
+
}, []);
|
|
121
120
|
var handleSelectToken = function (token) {
|
|
122
121
|
if (!selectedToken || selectedToken.id !== token.id) {
|
|
123
122
|
setSelectedToken(token);
|
|
@@ -232,41 +231,41 @@ exports.SwapFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
232
231
|
openHistory();
|
|
233
232
|
}
|
|
234
233
|
}, [isSwapPage, isHistoryPage, isHistoryDetailPage]);
|
|
235
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
234
|
+
return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { className: className, sx: sx, ref: drawerRef, trigger: props.children, onOpen: handleOnOpenSwap, onClose: handleOnCloseSwap, direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, children: (0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { header: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { title: SWAP_STEP_NAME[currentStep], overrideBack: handleBack, children: currentStep === SwapStep.SELECT_SWAP && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g4 }), children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 18, height: 18 }, children: SvgPath_1.IC_HELP }), (0, jsx_runtime_1.jsx)(material_1.Divider, { orientation: "vertical", sx: {
|
|
235
|
+
height: "1rem",
|
|
236
|
+
width: "1px",
|
|
237
|
+
backgroundColor: theme.palette.border.accent3,
|
|
238
|
+
marginLeft: theme.mixins.customMargin.m4,
|
|
239
|
+
marginRight: theme.mixins.customMargin.m4,
|
|
240
|
+
} }), (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: historyRef, trigger: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 18, height: 18 }, children: SvgPath_1.IC_HISTORY }), direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, onOpen: handleOnOpenHistory, onClose: handleOnCloseHistory, children: (0, jsx_runtime_1.jsx)(HistorySwap_1.default, { onClose: closeHistory }) })] })) }) }), footer: currentStep === SwapStep.SELECT_SWAP && ((0, jsx_runtime_1.jsx)(BottomActionLayout_1.default, { children: (0, jsx_runtime_1.jsx)(SwapToken_1.default
|
|
241
|
+
// onResetNumber={resetNumber}
|
|
242
|
+
, {
|
|
242
243
|
// onResetNumber={resetNumber}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
opacity: 0.3,
|
|
269
|
-
} })] }), (0, jsx_runtime_1.jsx)(CardTo_1.default, { selectedToToken: selectedOutputToken !== null && selectedOutputToken !== void 0 ? selectedOutputToken : undefined, selectedFromToken: selectedToken !== null && selectedToken !== void 0 ? selectedToken : undefined, fromAmount: number !== null && number !== void 0 ? number : undefined }), (0, jsx_runtime_1.jsx)(DetailSwap_1.default, { selectedToken: selectedToken !== null && selectedToken !== void 0 ? selectedToken : undefined, selectOutputToken: selectedOutputToken !== null && selectedOutputToken !== void 0 ? selectedOutputToken : undefined }), (0, jsx_runtime_1.jsx)(ModalSelectToken_1.default, { setSwapToken: handleSelectToken, token: selectedToken !== null && selectedToken !== void 0 ? selectedToken : undefined, outputToken: selectedOutputToken !== null && selectedOutputToken !== void 0 ? selectedOutputToken : undefined, setOutputToken: handleSelectOutputToken })] }, SwapStep.SELECT_SWAP) }, selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.id) }) }) }) }));
|
|
244
|
+
sx: {
|
|
245
|
+
width: "100%",
|
|
246
|
+
}, sendData: {
|
|
247
|
+
amount: number !== null ? number.toString() : "",
|
|
248
|
+
currency_slug: (_a = selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.slug) !== null && _a !== void 0 ? _a : "",
|
|
249
|
+
to_currency_slug: (_b = selectedOutputToken === null || selectedOutputToken === void 0 ? void 0 : selectedOutputToken.slug) !== null && _b !== void 0 ? _b : "",
|
|
250
|
+
extraTransactions: null,
|
|
251
|
+
}, children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { disabled: !number ||
|
|
252
|
+
number < ((_c = selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.min_value) !== null && _c !== void 0 ? _c : 0) ||
|
|
253
|
+
number > ((_d = selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.max_value) !== null && _d !== void 0 ? _d : 0) ||
|
|
254
|
+
number > Number(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.balance), fullWidth: true, children: "Preview swap" }) }, "".concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.slug, "-").concat(selectedOutputToken === null || selectedOutputToken === void 0 ? void 0 : selectedOutputToken.slug)) })), children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
255
|
+
padding: theme.mixins.pagePadding,
|
|
256
|
+
position: "relative",
|
|
257
|
+
}, children: (0, jsx_runtime_1.jsx)(SwiperControlled_1.default, { ref: swiperRef, swiperProps: {
|
|
258
|
+
autoHeight: true,
|
|
259
|
+
spaceBetween: 32,
|
|
260
|
+
}, disableSwipe: true, initialActiveTab: currentStep, children: (0, jsx_runtime_1.jsxs)(react_2.SwiperSlide, { children: [(0, jsx_runtime_1.jsx)(FromCard_1.default, { onChange: onChange, selectedToken: selectedToken !== null && selectedToken !== void 0 ? selectedToken : undefined, amount: number !== null && number !== void 0 ? number : undefined }), (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", alignItems: "center", gap: 1, sx: {
|
|
261
|
+
mt: "1rem",
|
|
262
|
+
mb: "1rem",
|
|
263
|
+
}, children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 18, height: 18 }, children: SvgPath_1.IC_SWAP }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
|
|
264
|
+
width: "90%",
|
|
265
|
+
borderStyle: "dashed",
|
|
266
|
+
borderColor: "#A3A3A3",
|
|
267
|
+
opacity: 0.3,
|
|
268
|
+
} })] }), (0, jsx_runtime_1.jsx)(CardTo_1.default, { selectedToToken: selectedOutputToken !== null && selectedOutputToken !== void 0 ? selectedOutputToken : undefined, selectedFromToken: selectedToken !== null && selectedToken !== void 0 ? selectedToken : undefined, fromAmount: number !== null && number !== void 0 ? number : undefined }), (0, jsx_runtime_1.jsx)(DetailSwap_1.default, { selectedToken: selectedToken !== null && selectedToken !== void 0 ? selectedToken : undefined, selectOutputToken: selectedOutputToken !== null && selectedOutputToken !== void 0 ? selectedOutputToken : undefined }), (0, jsx_runtime_1.jsx)(ModalSelectToken_1.default, { setSwapToken: handleSelectToken, token: selectedToken !== null && selectedToken !== void 0 ? selectedToken : undefined, outputToken: selectedOutputToken !== null && selectedOutputToken !== void 0 ? selectedOutputToken : undefined, setOutputToken: handleSelectOutputToken })] }, SwapStep.SELECT_SWAP) }, selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.id) }) }) }));
|
|
270
269
|
});
|
|
271
270
|
exports.SwapFunction.displayName = "SwapFunction";
|
|
272
271
|
exports.default = exports.SwapFunction;
|
|
@@ -47,7 +47,7 @@ var TokenSelection = function (props) {
|
|
|
47
47
|
}, [balance, tokenData]);
|
|
48
48
|
return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ onClick: function () { return onClick === null || onClick === void 0 ? void 0 : onClick(tokenData); }, sx: __assign({ backgroundColor: active
|
|
49
49
|
? "".concat(theme.palette.background.tertiary)
|
|
50
|
-
: "".concat(theme.palette.background.
|
|
50
|
+
: "".concat(theme.palette.background.white16), border: "1px solid", backdropFilter: "blur(12px)", borderColor: active ? "".concat(theme.palette.primary.main) : "".concat(theme.palette.border.accent3), borderRadius: theme.mixins.customRadius.r16, padding: theme.mixins.customPadding.p16, display: "flex", alignItems: "center", cursor: "pointer" }, sx) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { width: 20, src: tokenData === null || tokenData === void 0 ? void 0 : tokenData.link, sx: {
|
|
51
51
|
borderRadius: theme.mixins.customRadius.full,
|
|
52
52
|
} }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g2 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.mixins.value, children: tokenData === null || tokenData === void 0 ? void 0 : tokenData.name }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.mixins.valueDescription, children: tokenData === null || tokenData === void 0 ? void 0 : tokenData.full_name })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { marginLeft: "auto", alignItems: "end" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.mixins.value, children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: balance }) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.valueDescription), { color: theme.palette.text.accent }), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: balanceInUSD, start: "~ $" }) })] })] })));
|
|
53
53
|
};
|
|
@@ -18,8 +18,9 @@ var WaitingData = function (props) {
|
|
|
18
18
|
var theme = (0, providers_1.useTheme)();
|
|
19
19
|
var sx = props.sx, _a = props.numberOfSkeleton, numberOfSkeleton = _a === void 0 ? 5 : _a;
|
|
20
20
|
return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({ display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", gap: theme.mixins.gaps.g12, width: "100%", height: "fit-content" }, sx), children: Array.from({ length: numberOfSkeleton }).map(function (_, index) { return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
21
|
-
backgroundColor: theme.palette.background.
|
|
22
|
-
|
|
21
|
+
backgroundColor: theme.palette.background.white16,
|
|
22
|
+
backdropFilter: "blur(12px)",
|
|
23
|
+
borderRadius: theme.mixins.customRadius.r16,
|
|
23
24
|
display: "flex",
|
|
24
25
|
alignItems: "center",
|
|
25
26
|
justifyContent: "center",
|
|
@@ -32,20 +33,20 @@ var WaitingData = function (props) {
|
|
|
32
33
|
height: "auto",
|
|
33
34
|
width: "2.5rem",
|
|
34
35
|
borderRadius: "999px",
|
|
35
|
-
opacity: 0.
|
|
36
|
+
opacity: 0.7,
|
|
36
37
|
}, animation: "wave" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g6, flex: 1 }), children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", width: "70%", sx: {
|
|
37
38
|
height: "1.4rem",
|
|
38
|
-
opacity: 0.
|
|
39
|
+
opacity: 0.7,
|
|
39
40
|
borderRadius: theme.mixins.customRadius.r12,
|
|
40
41
|
}, animation: "wave" }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", width: "80%", sx: {
|
|
41
42
|
height: "1.2rem",
|
|
42
|
-
opacity: 0.
|
|
43
|
+
opacity: 0.7,
|
|
43
44
|
borderRadius: theme.mixins.customRadius.r12,
|
|
44
45
|
}, animation: "wave" })] }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", sx: {
|
|
45
46
|
height: "1.7rem",
|
|
46
47
|
width: "4rem",
|
|
47
48
|
borderRadius: theme.mixins.customRadius.r12,
|
|
48
|
-
opacity: 0.
|
|
49
|
+
opacity: 0.7,
|
|
49
50
|
}, animation: "wave" })] }, index)); }) }));
|
|
50
51
|
};
|
|
51
52
|
exports.default = WaitingData;
|
|
@@ -15,16 +15,19 @@ var material_1 = require("@mui/material");
|
|
|
15
15
|
var ThemeProvider_1 = require("../../../providers/ThemeProvider");
|
|
16
16
|
var react_2 = require("swiper/react");
|
|
17
17
|
var ActivitiesTypeSlice_1 = __importDefault(require("../../ui/ActivitiesTypeSlice"));
|
|
18
|
+
var TekWalletProvider_1 = require("../../../providers/TekWalletProvider");
|
|
18
19
|
var ActivityView = function (props) {
|
|
19
20
|
var sx = props.sx;
|
|
20
21
|
var theme = (0, ThemeProvider_1.useTheme)();
|
|
22
|
+
var options = (0, TekWalletProvider_1.useWalletConfig)().options;
|
|
23
|
+
var hideBackButtons = (options || {}).hideBackButtons;
|
|
21
24
|
var swiperRef = (0, react_1.useRef)(null);
|
|
22
25
|
var activityTypes = (0, useActivities_1.default)().activityTypes;
|
|
23
26
|
var _a = (0, react_1.useState)(0), activeTab = _a[0], setActiveTab = _a[1];
|
|
24
27
|
var handleSlideChange = function (index) {
|
|
25
28
|
setActiveTab(index);
|
|
26
29
|
};
|
|
27
|
-
return ((0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { header: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { title: "Activities" }), sx: sx, children: (0, jsx_runtime_1.jsx)(SwiperControlled_1.default, { ref: swiperRef,
|
|
30
|
+
return ((0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { header: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { title: "Activities", hideBack: !!(hideBackButtons === null || hideBackButtons === void 0 ? void 0 : hideBackButtons.activity) }), sx: sx, children: (0, jsx_runtime_1.jsx)(SwiperControlled_1.default, { ref: swiperRef,
|
|
28
31
|
// tabParamName="activity-tab"
|
|
29
32
|
swiperProps: {
|
|
30
33
|
slidesPerView: 1,
|
|
@@ -56,7 +59,7 @@ var ActivityView = function (props) {
|
|
|
56
59
|
}, children: activityTypes === null || activityTypes === void 0 ? void 0 : activityTypes.map(function (type, index) {
|
|
57
60
|
return ((0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { style: {
|
|
58
61
|
position: "relative",
|
|
59
|
-
}, children: (0, jsx_runtime_1.jsx)(ActivitiesTypeSlice_1.default, { type: type, isActive: activeTab === index }) }, index));
|
|
62
|
+
}, children: (index === activeTab || index === activeTab - 1 || index === activeTab + 1) && ((0, jsx_runtime_1.jsx)(ActivitiesTypeSlice_1.default, { type: type, isActive: activeTab === index })) }, index));
|
|
60
63
|
}) }) }));
|
|
61
64
|
};
|
|
62
65
|
exports.ActivityView = ActivityView;
|
|
@@ -127,12 +127,21 @@ var AssetView = function (props) {
|
|
|
127
127
|
fontWeight: theme.typography.fontWeight400,
|
|
128
128
|
color: theme.palette.text.black,
|
|
129
129
|
cursor: "pointer",
|
|
130
|
-
}, children: "View all" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: "IC_ARROW_RIGHT", width: 18, height: 18 })] })] }), (0, jsx_runtime_1.jsx)(
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
130
|
+
}, children: "View all" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: "IC_ARROW_RIGHT", width: 18, height: 18 })] })] }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
131
|
+
position: "relative",
|
|
132
|
+
left: "-".concat(theme.mixins.customPadding.p16),
|
|
133
|
+
width: "calc(100% + ".concat(theme.mixins.customPadding.p16, " * 2)"),
|
|
134
|
+
}, children: (0, jsx_runtime_1.jsx)(ActivitiesTypeSlice_1.default, { type: const_1.ACTIVITIES_TYPE_ALL, limitItems: 4, isActive: true, sx: {
|
|
135
|
+
paddingBottom: 0,
|
|
136
|
+
paddingTop: 0,
|
|
137
|
+
paddingLeft: 0,
|
|
138
|
+
paddingRight: 0,
|
|
139
|
+
}, smartListProps: {
|
|
140
|
+
bodySx: {
|
|
141
|
+
pt: 0,
|
|
142
|
+
pb: 0,
|
|
143
|
+
},
|
|
144
|
+
} }) })] })), (0, jsx_runtime_1.jsx)(TokensBoard_1.default, {})] })))] }));
|
|
136
145
|
};
|
|
137
146
|
exports.AssetView = AssetView;
|
|
138
147
|
exports.default = exports.AssetView;
|
|
@@ -12,8 +12,8 @@ var useWallet_1 = __importDefault(require("../../../hooks/useWallet"));
|
|
|
12
12
|
var react_1 = require("react");
|
|
13
13
|
var ActivityDetail_1 = __importDefault(require("../../ui/ActivityDetail"));
|
|
14
14
|
var EmptyData_1 = __importDefault(require("../../ui/EmptyData"));
|
|
15
|
-
var DefaultPageLayout_1 = __importDefault(require("../../layouts/DefaultPageLayout"));
|
|
16
15
|
var getIcon_1 = __importDefault(require("../../../utils/getIcon"));
|
|
16
|
+
var DefaultPageLayout_1 = __importDefault(require("../../layouts/DefaultPageLayout"));
|
|
17
17
|
var DetailActivityView = function (props) {
|
|
18
18
|
var sx = props.sx, id = props.id;
|
|
19
19
|
var activities = (0, useWallet_1.default)().activities;
|
|
@@ -1,7 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
var material_1 = require("@mui/material");
|
|
8
|
+
var Button_1 = __importDefault(require("../../ui/Button"));
|
|
4
9
|
function NotFoundView() {
|
|
5
|
-
|
|
10
|
+
var handleGoBack = function () {
|
|
11
|
+
window.history.back();
|
|
12
|
+
};
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
14
|
+
minHeight: "100dvh",
|
|
15
|
+
display: "flex",
|
|
16
|
+
alignItems: "center",
|
|
17
|
+
justifyContent: "center",
|
|
18
|
+
backgroundColor: "grey.50",
|
|
19
|
+
p: 3,
|
|
20
|
+
}, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
21
|
+
textAlign: "center",
|
|
22
|
+
maxWidth: 400,
|
|
23
|
+
}, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h1", sx: {
|
|
24
|
+
fontSize: "6rem",
|
|
25
|
+
fontWeight: "bold",
|
|
26
|
+
color: "grey.400",
|
|
27
|
+
mb: 2,
|
|
28
|
+
}, children: "404" }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h4", sx: {
|
|
29
|
+
fontWeight: "semibold",
|
|
30
|
+
color: "grey.700",
|
|
31
|
+
mb: 1,
|
|
32
|
+
}, children: "Page Not Found" }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", sx: {
|
|
33
|
+
color: "grey.600",
|
|
34
|
+
mb: 3,
|
|
35
|
+
}, children: "Sorry, the page you are looking for does not exist." }), (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { fullWidth: true, onClick: handleGoBack, children: "Go Back" })] }) }));
|
|
6
36
|
}
|
|
7
37
|
exports.default = NotFoundView;
|
|
@@ -107,6 +107,8 @@ var useUniqueId_1 = require("../../../../hooks/useUniqueId");
|
|
|
107
107
|
var DrawerComponent_1 = __importDefault(require("../../../ui/DrawerComponent"));
|
|
108
108
|
var ModalLayout_1 = __importDefault(require("../../../ui/ModalLayout"));
|
|
109
109
|
var SelectNetwork_1 = __importDefault(require("./SelectNetwork"));
|
|
110
|
+
var ChildPageLayout_1 = __importDefault(require("../../../layouts/ChildPageLayout"));
|
|
111
|
+
var navigation_1 = require("next/navigation");
|
|
110
112
|
var validateAddressDebounce = (0, lodash_1.debounce)(function (callback) {
|
|
111
113
|
callback();
|
|
112
114
|
}, 500, { leading: true, trailing: true });
|
|
@@ -116,8 +118,10 @@ var getEstimateFeeDebounce = (0, lodash_1.debounce)(function (callback) {
|
|
|
116
118
|
function Form(props) {
|
|
117
119
|
var _this = this;
|
|
118
120
|
var theme = (0, providers_1.useTheme)();
|
|
121
|
+
var searchParams = (0, navigation_1.useSearchParams)();
|
|
122
|
+
var address = searchParams.get("address") || "";
|
|
119
123
|
var selectedToken = props.selectedToken, onContinue = props.onContinue, sx = props.sx;
|
|
120
|
-
var _a = (0, react_1.useState)(
|
|
124
|
+
var _a = (0, react_1.useState)(address), recipientAddress = _a[0], setRecipientAddress = _a[1];
|
|
121
125
|
var _b = (0, react_1.useState)(), recipientAddressError = _b[0], setRecipientAddressError = _b[1];
|
|
122
126
|
var _c = (0, react_1.useState)(""), amount = _c[0], setAmount = _c[1];
|
|
123
127
|
var _d = (0, react_1.useState)(), amountErrorMessage = _d[0], setAmountErrorMessage = _d[1];
|
|
@@ -375,76 +379,76 @@ function Form(props) {
|
|
|
375
379
|
container: {
|
|
376
380
|
height: "100%",
|
|
377
381
|
},
|
|
378
|
-
}, id: keyboardId, onChange: handleKeyboardChangeAmount, keyboardType: xhub_keyboard_1.KeyboardType.Double, value: amount === null || amount === void 0 ? void 0 : amount.toString(), keyboardId: "form-amount-keyboard-id", onOpen: handleKeyboardOpen, onClose: handleKeyboardClose, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g16, minHeight: "100%", transition: "padding-bottom 0.3s ease-in-out" }), sx), (isKeyboardOpen
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
}, inputRest: {
|
|
389
|
-
placeholder: "Enter recipient address",
|
|
390
|
-
value: recipientAddress,
|
|
391
|
-
onChange: handleChangeRecipientAddress,
|
|
392
|
-
id: "recipient-address-input-id",
|
|
393
|
-
}, rightPart: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8 }), children: !!recipientAddress ? ((0, jsx_runtime_1.jsx)("label", { htmlFor: "recipient-address-input-id", children: (0, jsx_runtime_1.jsx)(material_1.Box, { onClick: handleClearRecipientAddress, sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8, cursor: "pointer" }), children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 12, height: 12 }, children: SvgPath_1.IC_CLOSE }) }) })) : ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { onClick: openScannerAddressQrCode, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: "IC_SCAN", sx: { width: 18, height: 18 } }) }), (0, jsx_runtime_1.jsx)(material_1.Divider, { orientation: "vertical", variant: "fullWidth", flexItem: true }), (0, jsx_runtime_1.jsx)(material_1.Box, { onClick: handlePaste, children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 18, height: 18 }, children: SvgPath_1.IC_DOCUMENTS }) })] })) }) }), !!recipientAddressError && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.validationError), children: recipientAddressError }))] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g8, opacity: allowSelectNetwork ? 1 : 0.5, pointerEvents: allowSelectNetwork ? "auto" : "none" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
394
|
-
fontSize: theme.typography.fontSize14,
|
|
395
|
-
color: theme.palette.text.black,
|
|
396
|
-
fontWeight: theme.typography.fontWeight700,
|
|
397
|
-
}, children: "Network" }), (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: selectNetworkDrawerRef, trigger: (0, jsx_runtime_1.jsx)(Input_1.default, { sx: {
|
|
398
|
-
paddingLeft: theme.mixins.customPadding.p12,
|
|
399
|
-
paddingRight: theme.mixins.customPadding.p16,
|
|
382
|
+
}, id: keyboardId, onChange: handleKeyboardChangeAmount, keyboardType: xhub_keyboard_1.KeyboardType.Double, value: amount === null || amount === void 0 ? void 0 : amount.toString(), keyboardId: "form-amount-keyboard-id", onOpen: handleKeyboardOpen, onClose: handleKeyboardClose, children: (0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g16, minHeight: "100%", transition: "padding-bottom 0.3s ease-in-out" }), sx), (isKeyboardOpen
|
|
383
|
+
? {
|
|
384
|
+
paddingBottom: theme.mixins.customPadding.p8,
|
|
385
|
+
}
|
|
386
|
+
: {})), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
387
|
+
fontSize: theme.typography.fontSize14,
|
|
388
|
+
color: theme.palette.text.black,
|
|
389
|
+
fontWeight: theme.typography.fontWeight700,
|
|
390
|
+
}, children: "Wallet address" }), (0, jsx_runtime_1.jsx)(Input_1.default, { sx: {
|
|
391
|
+
paddingX: theme.mixins.customPadding.p16,
|
|
400
392
|
}, inputRest: {
|
|
401
|
-
placeholder: "
|
|
402
|
-
value:
|
|
393
|
+
placeholder: "Enter recipient address",
|
|
394
|
+
value: recipientAddress,
|
|
403
395
|
onChange: handleChangeRecipientAddress,
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
},
|
|
420
|
-
|
|
421
|
-
background: theme.palette.background.tertiary,
|
|
396
|
+
id: "recipient-address-input-id",
|
|
397
|
+
}, rightPart: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8 }), children: !!recipientAddress ? ((0, jsx_runtime_1.jsx)("label", { htmlFor: "recipient-address-input-id", children: (0, jsx_runtime_1.jsx)(material_1.Box, { onClick: handleClearRecipientAddress, sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8, cursor: "pointer" }), children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 12, height: 12 }, children: SvgPath_1.IC_CLOSE }) }) })) : ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { onClick: openScannerAddressQrCode, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: "IC_SCAN", sx: { width: 18, height: 18 } }) }), (0, jsx_runtime_1.jsx)(material_1.Divider, { orientation: "vertical", variant: "fullWidth", flexItem: true }), (0, jsx_runtime_1.jsx)(material_1.Box, { onClick: handlePaste, children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 18, height: 18 }, children: SvgPath_1.IC_DOCUMENTS }) })] })) }) }), !!recipientAddressError && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.validationError), children: recipientAddressError }))] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g8, opacity: allowSelectNetwork ? 1 : 0.5, pointerEvents: allowSelectNetwork ? "auto" : "none" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
398
|
+
fontSize: theme.typography.fontSize14,
|
|
399
|
+
color: theme.palette.text.black,
|
|
400
|
+
fontWeight: theme.typography.fontWeight700,
|
|
401
|
+
}, children: "Network" }), (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: selectNetworkDrawerRef, trigger: (0, jsx_runtime_1.jsx)(Input_1.default, { sx: {
|
|
402
|
+
paddingLeft: theme.mixins.customPadding.p12,
|
|
403
|
+
paddingRight: theme.mixins.customPadding.p16,
|
|
404
|
+
}, inputRest: {
|
|
405
|
+
placeholder: "Select a network",
|
|
406
|
+
value: (selectedNetwork === null || selectedNetwork === void 0 ? void 0 : selectedNetwork.name) || "",
|
|
407
|
+
onChange: handleChangeRecipientAddress,
|
|
408
|
+
inputProps: {
|
|
409
|
+
readOnly: true,
|
|
410
|
+
},
|
|
411
|
+
}, leftPart: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8 }), children: (0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: "IC_NETWORK", src: (selectedNetwork === null || selectedNetwork === void 0 ? void 0 : selectedNetwork.link) || undefined, sx: { width: 24, height: 24 } }) }), rightPart: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { display: "block" }, children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 10, height: 18, display: "block" }, children: SvgPath_1.ARROW_DOWN }) }) }), children: (0, jsx_runtime_1.jsx)(ModalLayout_1.default, { title: "Select network", onClose: closeSelectNetwork, children: (0, jsx_runtime_1.jsx)(SelectNetwork_1.default, { networks: networks, selectedNetwork: selectedNetwork, selectedToken: selectedToken, onChangeNetwork: handleChangeNetwork }) }) })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8, alignItems: "center", justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
412
|
+
fontSize: theme.typography.fontSize14,
|
|
422
413
|
color: theme.palette.text.black,
|
|
423
|
-
fontSize: theme.typography.fontSize11,
|
|
424
414
|
fontWeight: theme.typography.fontWeight700,
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
415
|
+
}, children: "Withdrawal amount" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8, alignItems: "center" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { fontSize: theme.typography.fontSize11, color: theme.palette.text.accent }), children: "Your balance " }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { fontSize: theme.typography.fontSize12, color: theme.palette.text.black, fontWeight: theme.typography.fontWeight700 }), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: balance, unit: " ".concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.name) }) })] })] }), (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Label, { htmlFor: keyboardId, children: (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Input, { elementsAcceptIds: ["form-amount-keyboard-id"], value: amount === null || amount === void 0 ? void 0 : amount.toString(), displayType: xhub_keyboard_1.DisplayType.Double, placeholder: ((0, jsx_runtime_1.jsx)(material_1.Box, { component: "span", sx: { pointerEvents: "none" }, children: placeholder })), styles: {
|
|
416
|
+
container: {
|
|
417
|
+
paddingRight: theme.mixins.customPadding.p4,
|
|
418
|
+
paddingLeft: theme.mixins.customPadding.p16,
|
|
419
|
+
paddingTop: theme.mixins.customPadding.p4,
|
|
420
|
+
paddingBottom: theme.mixins.customPadding.p4,
|
|
421
|
+
border: "1px ".concat(theme.palette.border.primary, " solid"),
|
|
422
|
+
borderRadius: theme.mixins.customRadius.r8,
|
|
423
|
+
},
|
|
424
|
+
}, rightElement: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8 }), children: (0, jsx_runtime_1.jsx)(material_1.Box, { onClick: handleClickMaxAmount, sx: {
|
|
425
|
+
background: theme.palette.background.tertiary,
|
|
426
|
+
color: theme.palette.text.black,
|
|
427
|
+
fontSize: theme.typography.fontSize11,
|
|
428
|
+
fontWeight: theme.typography.fontWeight700,
|
|
429
|
+
borderRadius: theme.mixins.customRadius.r4,
|
|
430
|
+
paddingX: theme.mixins.customPadding.p16,
|
|
431
|
+
paddingY: theme.mixins.customPadding.p8,
|
|
432
|
+
border: "0px solid",
|
|
433
|
+
cursor: "pointer",
|
|
434
|
+
}, children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
435
|
+
fontSize: theme.typography.fontSize12,
|
|
436
|
+
color: theme.palette.text.primary,
|
|
437
|
+
fontWeight: theme.typography.fontWeight500,
|
|
438
|
+
}, children: "Max" }) }) }) }) }), !!amountErrorMessage && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign({}, theme.mixins.validationError), children: [amountErrorMessage, " ", !!amountError && ((0, jsx_runtime_1.jsx)(Formatter_1.default, { value: amountError, unit: " ".concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.name) }))] }))] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
439
|
+
fontSize: theme.typography.fontSize14,
|
|
440
|
+
color: theme.palette.text.black,
|
|
441
|
+
fontWeight: theme.typography.fontWeight700,
|
|
442
|
+
}, children: "Comment" }), (0, jsx_runtime_1.jsx)(Input_1.default, { inputRest: {
|
|
443
|
+
placeholder: "Enter comment if needed",
|
|
444
|
+
value: comment,
|
|
445
|
+
onChange: handleChangeComment,
|
|
446
|
+
} }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.validationDescription), children: "Enter comment if your receiving platform requires one to avoid losing your funds." })] }), (0, jsx_runtime_1.jsx)(Fees_1.default, { isFeePaidByAmount: true, feesData: estimateFee, amount: +amount, tokenSlug: (selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.slug) || "", feesStyle: Fees_1.FeesStyle.WITH_BACKGROUND, setIsEnoughBalanceToPayFee: setIsEnoughBalanceToPayFee }), (0, jsx_runtime_1.jsx)(QrCodeReader_1.default, { ref: scannerAddressQrCodeRef, onResult: handleScanAddressQrCode }), (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { loading: isValidatingAddress || isEstimatingFee, onClick: handleContinue, status: !recipientAddress ||
|
|
447
|
+
!selectedNetwork ||
|
|
448
|
+
!amount ||
|
|
449
|
+
!!recipientAddressError ||
|
|
450
|
+
!!amountError ||
|
|
451
|
+
!isEnoughBalanceToPayFee
|
|
452
|
+
? Button_1.BUTTON_STATUS.DISABLED
|
|
453
|
+
: Button_1.BUTTON_STATUS.ENABLED, sx: { width: "100%", marginTop: "auto" }, children: "Continue" })] }) }) }));
|
|
450
454
|
}
|
|
@@ -126,13 +126,7 @@ var SendExternalView = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
126
126
|
height: "100%",
|
|
127
127
|
}, swiperStyle: {
|
|
128
128
|
height: "100%",
|
|
129
|
-
}, children: [(0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { style: {
|
|
130
|
-
height: "100%",
|
|
131
|
-
paddingLeft: "0px",
|
|
132
|
-
paddingRight: "0px",
|
|
133
|
-
paddingTop: "0px",
|
|
134
|
-
paddingBottom: "0px",
|
|
135
|
-
}, children: (0, jsx_runtime_1.jsx)(Form_1.default, { sx: __assign({}, theme.mixins.pagePadding), selectedToken: selectedToken, onContinue: gotoConfirmStep }, clearFormKey) }) }, SendExternalStep.ADDRESS_FORM), (0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { style: { minHeight: "100%" }, children: (0, jsx_runtime_1.jsx)(DefaultPageLayout_1.default, { sx: {
|
|
129
|
+
}, children: [(0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { style: { height: "100%", overflow: "hidden" }, children: (0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { children: (0, jsx_runtime_1.jsx)(DefaultPageLayout_1.default, { children: (0, jsx_runtime_1.jsx)(SelectToken_1.default, { tokens: withdrawTokens, selectedToken: selectedToken, onChangeToken: handleSelectToken }) }) }) }, SendExternalStep.SELECT_TOKEN), (0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { style: { minHeight: "100%" }, children: (0, jsx_runtime_1.jsx)(react_1.Suspense, { children: (0, jsx_runtime_1.jsx)(Form_1.default, { sx: __assign({}, theme.mixins.pagePadding), selectedToken: selectedToken, onContinue: gotoConfirmStep }, clearFormKey) }) }, SendExternalStep.ADDRESS_FORM), (0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { style: { minHeight: "100%" }, children: (0, jsx_runtime_1.jsx)(DefaultPageLayout_1.default, { sx: {
|
|
136
130
|
height: "100%",
|
|
137
131
|
}, children: payload && ((0, jsx_runtime_1.jsx)(Summary_1.default, { estimateFee: estimateFee, payload: __assign(__assign({}, payload), { await_completion: true }), selectedToken: selectedToken, confirmProps: {
|
|
138
132
|
onSuccess: handleSendSuccess,
|