tek-wallet 0.0.394 → 0.0.395
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.
|
@@ -193,9 +193,10 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
193
193
|
return undefined;
|
|
194
194
|
return +amount - +(estimateFee === null || estimateFee === void 0 ? void 0 : estimateFee.feeInCurrency);
|
|
195
195
|
}, [estimateFee, amount]);
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
var swiperKey = (0, react_1.useMemo)(function () {
|
|
197
|
+
var _a;
|
|
198
|
+
return "".concat((_a = estimateFee === null || estimateFee === void 0 ? void 0 : estimateFee.feeDetail) === null || _a === void 0 ? void 0 : _a.length, "-").concat(amountError, "-").concat(recipientAddressError);
|
|
199
|
+
}, [estimateFee, amountError, recipientAddressError]);
|
|
199
200
|
var clearValues = function () {
|
|
200
201
|
setSelectedToken(undefined);
|
|
201
202
|
setSelectedNetwork(undefined);
|
|
@@ -620,7 +621,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
620
621
|
!selectedToken ||
|
|
621
622
|
isLoadingEstimateFee
|
|
622
623
|
? Button_1.BUTTON_STATUS.DISABLED
|
|
623
|
-
: Button_1.BUTTON_STATUS.ENABLED, children: "Continue" })] }) })] }), (0, jsx_runtime_1.jsx)(QrCodeReader_1.default, { ref: scannerAllQrCodeRef, onResult: handleScanAllQrCode }), (0, jsx_runtime_1.jsx)(QrCodeReader_1.default, { ref: scannerAddressQrCodeRef, onResult: handleScanAddressQrCode }), (0, jsx_runtime_1.jsx)(AppBackDrop_1.default, { ref: backDropRef }), (0, jsx_runtime_1.jsx)(AppDialog_1.default, { overrideOpen: !!infoDialogContent, children: (0, jsx_runtime_1.jsx)(DialogContentLayout_1.default, { content: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
624
|
+
: Button_1.BUTTON_STATUS.ENABLED, children: "Continue" })] }) }, swiperKey)] }), (0, jsx_runtime_1.jsx)(QrCodeReader_1.default, { ref: scannerAllQrCodeRef, onResult: handleScanAllQrCode }), (0, jsx_runtime_1.jsx)(QrCodeReader_1.default, { ref: scannerAddressQrCodeRef, onResult: handleScanAddressQrCode }), (0, jsx_runtime_1.jsx)(AppBackDrop_1.default, { ref: backDropRef }), (0, jsx_runtime_1.jsx)(AppDialog_1.default, { overrideOpen: !!infoDialogContent, children: (0, jsx_runtime_1.jsx)(DialogContentLayout_1.default, { content: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
624
625
|
textAlign: "center",
|
|
625
626
|
display: "inline-block",
|
|
626
627
|
width: "100%",
|