tek-wallet 0.0.408 → 0.0.410
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.
|
@@ -362,7 +362,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
362
362
|
break;
|
|
363
363
|
}
|
|
364
364
|
};
|
|
365
|
-
var
|
|
365
|
+
var getEstimateFee = (0, react_1.useCallback)(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
366
366
|
var response;
|
|
367
367
|
return __generator(this, function (_a) {
|
|
368
368
|
switch (_a.label) {
|
|
@@ -383,7 +383,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
383
383
|
return [2 /*return*/];
|
|
384
384
|
}
|
|
385
385
|
});
|
|
386
|
-
}); }, [amount, selectedToken
|
|
386
|
+
}); }, [amount, selectedToken, amountError]);
|
|
387
387
|
var openScannerAddressQrCode = function () {
|
|
388
388
|
var _a;
|
|
389
389
|
(_a = scannerAddressQrCodeRef.current) === null || _a === void 0 ? void 0 : _a.open();
|
|
@@ -569,6 +569,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
569
569
|
response = _c.sent();
|
|
570
570
|
console.warn("🚀 ~ handleSendExternal ~ response:", response);
|
|
571
571
|
if (response.success) {
|
|
572
|
+
close();
|
|
572
573
|
(_a = confirmLayoutDrawerRef.current) === null || _a === void 0 ? void 0 : _a.close();
|
|
573
574
|
(_b = props.onSendSuccess) === null || _b === void 0 ? void 0 : _b.call(props, response);
|
|
574
575
|
}
|
|
@@ -606,8 +607,8 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
606
607
|
validateAmount();
|
|
607
608
|
}, [validateAmount]);
|
|
608
609
|
(0, react_1.useEffect)(function () {
|
|
609
|
-
|
|
610
|
-
}, [
|
|
610
|
+
getEstimateFee();
|
|
611
|
+
}, [getEstimateFee]);
|
|
611
612
|
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.jsxs)(ModalLayout_1.default, { overrideHeader: (0, jsx_runtime_1.jsx)(BackHeader_1.default, { sx: {
|
|
612
613
|
width: "100%",
|
|
613
614
|
display: "flex",
|