tek-wallet 0.0.389 → 0.0.390

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.
@@ -145,8 +145,6 @@ var AmountError;
145
145
  })(AmountError || (exports.AmountError = AmountError = {}));
146
146
  var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
147
147
  var _a;
148
- var swiperKey = (0, react_1.useId)();
149
- console.warn("🚀 ~ swiperKey:", swiperKey);
150
148
  var drawerRef = (0, react_1.useRef)(null);
151
149
  var swiperRef = (0, react_1.useRef)(null);
152
150
  var theme = (0, material_1.useTheme)();
@@ -195,6 +193,10 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
195
193
  return undefined;
196
194
  return +amount - +(estimateFee === null || estimateFee === void 0 ? void 0 : estimateFee.feeInCurrency);
197
195
  }, [estimateFee, amount]);
196
+ var swiperKey = (0, react_1.useMemo)(function () {
197
+ var _a;
198
+ return "".concat((_a = estimateFee === null || estimateFee === void 0 ? void 0 : estimateFee.feeDetail) === null || _a === void 0 ? void 0 : _a.length, "-").concat(amountError, "-").concat(recipientAddressError);
199
+ }, [estimateFee, amountError, recipientAddressError]);
198
200
  var clearValues = function () {
199
201
  setSelectedToken(undefined);
200
202
  setSelectedNetwork(undefined);
@@ -22,9 +22,15 @@ export interface FeeDetail {
22
22
  feeInUSD: number;
23
23
  feeInCurrency: number;
24
24
  feePercent: number;
25
+ currency: Currency;
25
26
  feeFixed: number;
26
- currencySlug: string;
27
- isEnoughBalance?: boolean;
27
+ }
28
+ export interface Currency {
29
+ id: number;
30
+ slug: string;
31
+ full_name: string;
32
+ icon: string;
33
+ link: string;
28
34
  }
29
35
  export interface FeeType {
30
36
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.389",
3
+ "version": "0.0.390",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",