tek-wallet 0.0.393 → 0.0.394
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,10 +193,9 @@ 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
|
-
|
|
199
|
-
}, [estimateFee, amountError, recipientAddressError]);
|
|
196
|
+
// const swiperKey = useMemo(() => {
|
|
197
|
+
// return `${estimateFee?.feeDetail?.length}-${amountError}-${recipientAddressError}`;
|
|
198
|
+
// }, [estimateFee, amountError, recipientAddressError]);
|
|
200
199
|
var clearValues = function () {
|
|
201
200
|
setSelectedToken(undefined);
|
|
202
201
|
setSelectedNetwork(undefined);
|
|
@@ -584,16 +583,16 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
584
583
|
}, sx: {
|
|
585
584
|
my: theme.mixins.customMargin.m12,
|
|
586
585
|
} })] }, item));
|
|
587
|
-
}) }) }
|
|
586
|
+
}) }) }), (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: withdrawToken === null || withdrawToken === void 0 ? void 0 : withdrawToken.map(function (item) {
|
|
588
587
|
var stringifiedTokenData = JSON.stringify(item);
|
|
589
588
|
if (!item)
|
|
590
589
|
return null;
|
|
591
590
|
return ((0, jsx_runtime_1.jsx)(TokenSelection_1.default, { onClick: handleSelectToken, tokenData: stringifiedTokenData, active: (selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.id) === item.id }, item.id));
|
|
592
|
-
}) }) }
|
|
591
|
+
}) }) }), (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 }), children: networks === null || networks === void 0 ? void 0 : networks.map(function (item) {
|
|
593
592
|
if (!item)
|
|
594
593
|
return null;
|
|
595
594
|
return ((0, jsx_runtime_1.jsx)(NetworkSelection_1.default, { onClick: handleSelectNetwork, networkData: JSON.stringify(item), active: (selectedNetwork === null || selectedNetwork === void 0 ? void 0 : selectedNetwork.id) === item.id }, item.id));
|
|
596
|
-
}) }) }
|
|
595
|
+
}) }) }), (0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g16 }), 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: __assign({}, theme.mixins.fieldTitle), children: "Recipient address" }), (0, jsx_runtime_1.jsx)(Input_1.default, { sx: {
|
|
597
596
|
paddingRight: theme.mixins.customPadding.p12,
|
|
598
597
|
}, inputRest: {
|
|
599
598
|
placeholder: "Enter recipient address",
|
|
@@ -621,7 +620,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
621
620
|
!selectedToken ||
|
|
622
621
|
isLoadingEstimateFee
|
|
623
622
|
? Button_1.BUTTON_STATUS.DISABLED
|
|
624
|
-
: Button_1.BUTTON_STATUS.ENABLED, children: "Continue" })] }) }
|
|
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: {
|
|
625
624
|
textAlign: "center",
|
|
626
625
|
display: "inline-block",
|
|
627
626
|
width: "100%",
|