tek-wallet 0.0.327 → 0.0.329

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.
@@ -115,7 +115,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
115
115
  var isAuthenticated = (0, useWalletData_1.default)().isAuthenticated;
116
116
  var _d = (0, useWithdrawData_1.default)(), withdrawTokens = _d.withdrawTokens, updateWithdrawToken = _d.updateWithdrawToken;
117
117
  var _e = (0, react_1.useState)(), infoDialogContent = _e[0], setInfoDialogContent = _e[1];
118
- var _f = (0, react_1.useState)(""), amount = _f[0], setAmount = _f[1];
118
+ var _f = (0, react_1.useState)(""), amount = _f[0], setAmountV2 = _f[1];
119
119
  var _g = (0, react_1.useState)(undefined), memo = _g[0], setMemo = _g[1];
120
120
  var _h = (0, react_1.useState)(undefined), recipientAddress = _h[0], setRecipientAddress = _h[1];
121
121
  var _j = (0, react_1.useState)(), amountErrorMessage = _j[0], setAmountErrorMessage = _j[1];
@@ -139,13 +139,9 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
139
139
  }
140
140
  return newNetWorks;
141
141
  }, [selectedToken, selectedNetwork]);
142
- var gotoStep = function (step) {
143
- var _a;
144
- if (step === WithdrawStep.SELECT_METHOD) {
145
- clearValues();
146
- }
147
- setCurrentStep(step);
148
- (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.slideTo(step);
142
+ var setAmount = function (value) {
143
+ console.warn("🚀 ~ setAmount ~ value:", value);
144
+ setAmountV2(value);
149
145
  };
150
146
  var clearValues = function () {
151
147
  setSelectedToken(undefined);
@@ -159,6 +155,14 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
159
155
  setAmountError(undefined);
160
156
  setAmountErrorMessage(undefined);
161
157
  };
158
+ var gotoStep = function (step) {
159
+ var _a;
160
+ if (step === WithdrawStep.SELECT_METHOD) {
161
+ clearValues();
162
+ }
163
+ setCurrentStep(step);
164
+ (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.slideTo(step);
165
+ };
162
166
  var open = function () {
163
167
  var _a;
164
168
  (_a = drawerRef.current) === null || _a === void 0 ? void 0 : _a.open();
@@ -228,7 +232,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
228
232
  var _a;
229
233
  (_a = suggestUseTransferInternalDialogRef.current) === null || _a === void 0 ? void 0 : _a.close();
230
234
  var tokenSet = findWithdrawToken((sendInfoGet === null || sendInfoGet === void 0 ? void 0 : sendInfoGet.jetton) || "");
231
- console.warn("🚀 ~ handleSelectTransferInternal ~ tokenSet:", tokenSet);
235
+ console.warn("🚀 ~ handleSelectTransferInternal ~ sendInfoGet:", sendInfoGet);
232
236
  if (!tokenSet) {
233
237
  gotoStep(WithdrawStep.SELECT_TOKEN);
234
238
  }
@@ -243,9 +247,9 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
243
247
  var handleSelectContinueTransferExternal = function (dataPromptly) {
244
248
  var _a;
245
249
  var data = dataPromptly !== null && dataPromptly !== void 0 ? dataPromptly : sendInfoGet;
250
+ console.warn("🚀 ~ data handleSelectContinueTransferExternal:", data);
246
251
  (_a = suggestUseTransferInternalDialogRef.current) === null || _a === void 0 ? void 0 : _a.close();
247
252
  var tokenSet = findWithdrawToken((data === null || data === void 0 ? void 0 : data.jetton) || "");
248
- console.warn("🚀 ~ handleSelectContinueTransferExternal ~ tokenSet:", tokenSet);
249
253
  if (!tokenSet) {
250
254
  gotoStep(WithdrawStep.SELECT_TOKEN);
251
255
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.327",
3
+ "version": "0.0.329",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",