tek-wallet 0.0.399 → 0.0.400
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.
|
@@ -40,7 +40,7 @@ Button.displayName = "Button";
|
|
|
40
40
|
Button.Primary = function (props) {
|
|
41
41
|
var sx = props.sx, children = props.children, rest = __rest(props, ["sx", "children"]);
|
|
42
42
|
var theme = (0, material_1.useTheme)();
|
|
43
|
-
return ((0, jsx_runtime_1.jsx)(Button, __assign({}, rest, { variant: "contained", color: "primary", sx: __assign({ borderRadius: theme.mixins.theBorderRadius.full, "
|
|
43
|
+
return ((0, jsx_runtime_1.jsx)(Button, __assign({}, rest, { variant: "contained", color: "primary", sx: __assign({ borderRadius: theme.mixins.theBorderRadius.full, "&.Mui-disabled": {
|
|
44
44
|
backgroundColor: theme.palette.background.white16,
|
|
45
45
|
color: theme.palette.text.white24,
|
|
46
46
|
} }, sx), children: children })));
|
|
@@ -195,8 +195,10 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
195
195
|
return +amount - +(estimateFee === null || estimateFee === void 0 ? void 0 : estimateFee.feeInCurrency);
|
|
196
196
|
}, [estimateFee, amount]);
|
|
197
197
|
(0, react_1.useEffect)(function () {
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
setTimeout(function () {
|
|
199
|
+
var _a;
|
|
200
|
+
(_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.update();
|
|
201
|
+
}, 50);
|
|
200
202
|
}, [estimateFee, amountError, recipientAddressError]);
|
|
201
203
|
var clearValues = function () {
|
|
202
204
|
setSelectedToken(undefined);
|
|
@@ -319,7 +321,9 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
319
321
|
if (onlyChangeAddress.current) {
|
|
320
322
|
return;
|
|
321
323
|
}
|
|
322
|
-
var tokenSet =
|
|
324
|
+
var tokenSet = (data === null || data === void 0 ? void 0 : data.jetton)
|
|
325
|
+
? findWithdrawToken(data === null || data === void 0 ? void 0 : data.jetton)
|
|
326
|
+
: selectedToken;
|
|
323
327
|
if (!tokenSet) {
|
|
324
328
|
gotoStep(WithdrawStep.SELECT_TOKEN);
|
|
325
329
|
}
|