tek-wallet 0.0.399 → 0.0.401

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, "& .Mui-disabled": {
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
- var _a;
199
- (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.update();
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 = findWithdrawToken((data === null || data === void 0 ? void 0 : data.jetton) || "");
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
  }
@@ -616,7 +620,9 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
616
620
  placeholder: "Enter memo",
617
621
  value: memo,
618
622
  onChange: handleChangeMemo,
619
- } })] })), ((_a = estimateFee === null || estimateFee === void 0 ? void 0 : estimateFee.feeDetail) === null || _a === void 0 ? void 0 : _a.length) && !!amount && ((0, jsx_runtime_1.jsx)(Fees_1.default, { feesData: JSON.stringify(estimateFee), amount: +amount })), estimateReceive !== undefined && !amountError && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.row), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.fieldTitle), children: "Estimate receive" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { ml: "auto" }), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: estimateReceive }) })] })), (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100%" }, onClick: handleSend, status: !!amountError ||
623
+ } })] })), ((_a = estimateFee === null || estimateFee === void 0 ? void 0 : estimateFee.feeDetail) === null || _a === void 0 ? void 0 : _a.length) && !!amount && ((0, jsx_runtime_1.jsx)(Fees_1.default, { feesData: JSON.stringify(estimateFee), amount: +amount })), estimateReceive !== undefined && !amountError && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.row), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.fieldTitle), children: "Estimate receive" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { ml: "auto" }), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: estimateReceive }) })] })), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
624
+ color: "#f00",
625
+ }, children: "".concat(isValidatingAddress, " - ").concat(recipientAddressError, " - ").concat(amountError, " - ").concat(recipientAddress, " - ").concat(amount, " - ").concat(selectedToken, " - ").concat(selectedNetwork, " - ").concat(selectedMethod, " - ").concat(sendInfoGet) }), (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100%" }, onClick: handleSend, status: !!amountError ||
620
626
  !!recipientAddressError ||
621
627
  !recipientAddress ||
622
628
  !amount ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.399",
3
+ "version": "0.0.401",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",