tek-wallet 0.0.325 → 0.0.326

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.
@@ -139,6 +139,14 @@ 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);
149
+ };
142
150
  var clearValues = function () {
143
151
  setSelectedToken(undefined);
144
152
  setSelectedNetwork(undefined);
@@ -148,9 +156,9 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
148
156
  setSelectedMethod(undefined);
149
157
  setSendInfoGet(undefined);
150
158
  setRecipientAddressInternal(undefined);
151
- setCurrentStep(WithdrawStep.SELECT_METHOD);
152
159
  setAmountError(undefined);
153
160
  setAmountErrorMessage(undefined);
161
+ gotoStep(WithdrawStep.SELECT_METHOD);
154
162
  };
155
163
  var open = function () {
156
164
  var _a;
@@ -206,14 +214,6 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
206
214
  var balance = Math.min(+(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.balance), +(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.max_value));
207
215
  setAmount(balance.toString() || "");
208
216
  };
209
- var gotoStep = function (step) {
210
- var _a;
211
- if (step === WithdrawStep.SELECT_METHOD) {
212
- clearValues();
213
- }
214
- setCurrentStep(step);
215
- (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.slideTo(step);
216
- };
217
217
  var handleReSelectNetwork = function () {
218
218
  gotoStep(WithdrawStep.SELECT_NETWORK);
219
219
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.325",
3
+ "version": "0.0.326",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",