tek-wallet 0.0.225 → 0.0.227
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.
|
@@ -205,10 +205,10 @@ var DepositFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
205
205
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
206
206
|
};
|
|
207
207
|
(0, react_1.useEffect)(function () {
|
|
208
|
-
if (isAuthenticated
|
|
208
|
+
if (isAuthenticated) {
|
|
209
209
|
updateDepositToken();
|
|
210
210
|
}
|
|
211
|
-
}, [isAuthenticated
|
|
211
|
+
}, [isAuthenticated]);
|
|
212
212
|
return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: drawerRef, trigger: props.children, onOpen: props.onOpen, onClose: handleOnClose, children: (0, jsx_runtime_1.jsx)(ModalLayout_1.default, { overrideHeader: (0, jsx_runtime_1.jsx)(BackHeader_1.default, { sx: {
|
|
213
213
|
width: "100%",
|
|
214
214
|
display: "flex",
|
|
@@ -128,10 +128,11 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
128
128
|
nextStep();
|
|
129
129
|
};
|
|
130
130
|
(0, react_1.useEffect)(function () {
|
|
131
|
-
if (isAuthenticated
|
|
131
|
+
if (isAuthenticated) {
|
|
132
|
+
console.warn("🚀 ~ updateWithdrawToken ~ isAuthenticated:", isAuthenticated);
|
|
132
133
|
updateWithdrawToken();
|
|
133
134
|
}
|
|
134
|
-
}, [isAuthenticated
|
|
135
|
+
}, [isAuthenticated]);
|
|
135
136
|
return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: drawerRef, trigger: props.children, onOpen: props.onOpen, onClose: props.onClose, children: (0, jsx_runtime_1.jsx)(ModalLayout_1.default, { overrideHeader: (0, jsx_runtime_1.jsx)(BackHeader_1.default, { sx: {
|
|
136
137
|
width: "100%",
|
|
137
138
|
display: "flex",
|
|
@@ -141,7 +142,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
141
142
|
}, overrideBack: handleBack, hideBack: currentStep === WithdrawStep.SELECT_METHOD, center: WITHDRAW_STEP_NAME[currentStep], children: (0, jsx_runtime_1.jsx)(CloseModal_1.default, { sx: { marginLeft: "auto" }, onClick: close }) }), children: (0, jsx_runtime_1.jsxs)(SwiperControlled_1.default, { ref: swiperRef, swiperProps: {
|
|
142
143
|
autoHeight: true,
|
|
143
144
|
spaceBetween: 32,
|
|
144
|
-
}, disableSwipe: true, children: [(0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g12, height: "fit-content" }), children: Object.values(
|
|
145
|
+
}, disableSwipe: true, children: [(0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g12, height: "fit-content" }), children: Object.values(SendMethods).map(function (item) {
|
|
145
146
|
return ((0, jsx_runtime_1.jsx)(ListItemCustom_1.default, { title: item, description: item, icon: (0, getIcon_1.default)(item + "_icon"), onClick: function () { return handleSelectMethod(item); } }, item));
|
|
146
147
|
}) }) }, WithdrawStep.SELECT_METHOD), (0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g12, height: "fit-content" }), children: withdrawTokens === null || withdrawTokens === void 0 ? void 0 : withdrawTokens.map(function (item) {
|
|
147
148
|
var stringifiedTokenData = JSON.stringify(item);
|
|
@@ -103,7 +103,7 @@ function WithdrawProvider(_a) {
|
|
|
103
103
|
return [4 /*yield*/, (0, get_withdraw_tokens_list_service_1.default)()];
|
|
104
104
|
case 1:
|
|
105
105
|
response = _a.sent();
|
|
106
|
-
console.warn("🚀 ~ getBalance ~ response:", response);
|
|
106
|
+
console.warn("🚀 ~ getBalance getWithdrawTokenList ~ response:", response);
|
|
107
107
|
setWithdrawTokens(response === null || response === void 0 ? void 0 : response.supported_tokens);
|
|
108
108
|
setIsLoadingWithdrawToken(false);
|
|
109
109
|
return [3 /*break*/, 3];
|
|
@@ -60,7 +60,7 @@ var getWithdrawTokenList = function (query) { return __awaiter(void 0, void 0, v
|
|
|
60
60
|
return [4 /*yield*/, (0, get_config_tokens_list_service_1.default)(params)];
|
|
61
61
|
case 1:
|
|
62
62
|
response = _a.sent();
|
|
63
|
-
console.warn("🚀 ~ response
|
|
63
|
+
console.warn("🚀 ~ response getWithdrawTokenList:", response);
|
|
64
64
|
return [2 /*return*/, response === null || response === void 0 ? void 0 : response.data];
|
|
65
65
|
}
|
|
66
66
|
});
|