tek-wallet 0.0.303 → 0.0.306

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.
@@ -206,6 +206,10 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
206
206
  };
207
207
  var handleBack = function () {
208
208
  var _a;
209
+ if (currentStep === WithdrawStep.CONFIRM &&
210
+ selectedMethod === SendMethods.TRANSFER_INTERNAL) {
211
+ gotoStep(WithdrawStep.SELECT_TOKEN);
212
+ }
209
213
  (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.prev();
210
214
  setCurrentStep(function (prev) { return prev - 1; });
211
215
  };
@@ -261,8 +265,8 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
261
265
  return [2 /*return*/];
262
266
  }
263
267
  setRecipientAddress(tonTransferParam === null || tonTransferParam === void 0 ? void 0 : tonTransferParam.address);
264
- withdrawToken = findWithdrawToken(tonTransferParam === null || tonTransferParam === void 0 ? void 0 : tonTransferParam.address);
265
- if (withdrawToken) {
268
+ withdrawToken = findWithdrawToken((tonTransferParam === null || tonTransferParam === void 0 ? void 0 : tonTransferParam.jetton) || "");
269
+ if (!!withdrawToken) {
266
270
  setSelectedToken(withdrawToken);
267
271
  setAmount(tonTransferParam === null || tonTransferParam === void 0 ? void 0 : tonTransferParam.amount);
268
272
  }
@@ -327,7 +331,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
327
331
  minHeight: "2rem",
328
332
  mb: theme.mixins.customMargin.m20,
329
333
  }, overrideBack: handleBack, hideBack: currentStep === WithdrawStep.SELECT_METHOD, center: currentStep === WithdrawStep.CONFIRM
330
- ? "Confirm withdrawn ".concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.name)
334
+ ? "Send ".concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.name, " ").concat(selectedMethod === SendMethods.TRANSFER_EXTERNAL ? "externally" : "internally")
331
335
  : WITHDRAW_STEP_NAME[currentStep], children: (0, jsx_runtime_1.jsx)(CloseModal_1.default, { sx: { marginLeft: "auto" }, onClick: close }) }), children: [(0, jsx_runtime_1.jsxs)(SwiperControlled_1.default, { ref: swiperRef, swiperProps: {
332
336
  autoHeight: true,
333
337
  spaceBetween: 32,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.303",
3
+ "version": "0.0.306",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",