tek-wallet 0.0.396 → 0.0.397
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.
|
@@ -65,6 +65,7 @@ function Fees(props) {
|
|
|
65
65
|
+((_d = token === null || token === void 0 ? void 0 : token.current_value) !== null && _d !== void 0 ? _d : 0) >= totalFeeInCurrency;
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
|
+
console.warn("🚀 ~ consttokensFee:FeeDetailType[]=useMemo ~ result:", result);
|
|
68
69
|
return result;
|
|
69
70
|
}, [tokens, feesData === null || feesData === void 0 ? void 0 : feesData.feeDetail, amount]);
|
|
70
71
|
var feeCheckedBalance = (0, react_1.useMemo)(function () {
|
|
@@ -12,6 +12,7 @@ export interface SwiperControlledRef {
|
|
|
12
12
|
slideTo: (index: number) => void;
|
|
13
13
|
next: () => void;
|
|
14
14
|
prev: () => void;
|
|
15
|
+
update: () => void;
|
|
15
16
|
}
|
|
16
17
|
declare const SwiperControlled: import("react").ForwardRefExoticComponent<SwiperControlledProps & import("react").RefAttributes<SwiperControlledRef>>;
|
|
17
18
|
export default SwiperControlled;
|
|
@@ -40,10 +40,15 @@ var SwiperControlled = (0, react_2.forwardRef)(function (props, ref) {
|
|
|
40
40
|
var _a, _b;
|
|
41
41
|
(_b = (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) === null || _b === void 0 ? void 0 : _b.slidePrev();
|
|
42
42
|
};
|
|
43
|
+
var update = function () {
|
|
44
|
+
var _a, _b;
|
|
45
|
+
(_b = (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) === null || _b === void 0 ? void 0 : _b.update();
|
|
46
|
+
};
|
|
43
47
|
(0, react_2.useImperativeHandle)(ref, function () { return ({
|
|
44
48
|
slideTo: slideTo,
|
|
45
49
|
next: next,
|
|
46
50
|
prev: prev,
|
|
51
|
+
update: update,
|
|
47
52
|
}); });
|
|
48
53
|
var handleSlideChange = function (swiper) {
|
|
49
54
|
setActiveTab(swiper.activeIndex);
|
|
@@ -193,9 +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
|
-
|
|
196
|
+
(0, react_1.useEffect)(function () {
|
|
197
197
|
var _a;
|
|
198
|
-
|
|
198
|
+
(_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.update();
|
|
199
199
|
}, [estimateFee, amountError, recipientAddressError]);
|
|
200
200
|
var clearValues = function () {
|
|
201
201
|
setSelectedToken(undefined);
|
|
@@ -621,7 +621,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
621
621
|
!selectedToken ||
|
|
622
622
|
isLoadingEstimateFee
|
|
623
623
|
? Button_1.BUTTON_STATUS.DISABLED
|
|
624
|
-
: Button_1.BUTTON_STATUS.ENABLED, children: "Continue" })] }) },
|
|
624
|
+
: Button_1.BUTTON_STATUS.ENABLED, children: "Continue" })] }) }, WithdrawStep.FORM)] }), (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
625
|
textAlign: "center",
|
|
626
626
|
display: "inline-block",
|
|
627
627
|
width: "100%",
|