tek-wallet 0.0.506 → 0.0.508

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.
@@ -37,9 +37,9 @@ var useWalletData_1 = __importDefault(require("../../../hooks/useWalletData"));
37
37
  var react_1 = require("react");
38
38
  var ReceiveFunction_1 = __importDefault(require("../ReceiveFunction"));
39
39
  function Fees(props) {
40
- var sx = props.sx, amount = props.amount, rest = __rest(props, ["sx", "amount"]);
40
+ var sx = props.sx, amount = props.amount, feesDataString = props.feesData, rest = __rest(props, ["sx", "amount", "feesData"]);
41
41
  var theme = (0, material_1.useTheme)();
42
- var feesData = (0, parsePropsData_1.default)(props === null || props === void 0 ? void 0 : props.feesData);
42
+ var feesData = (0, parsePropsData_1.default)(feesDataString);
43
43
  var tokens = (0, useWalletData_1.default)().tokens;
44
44
  var tokensFee = (0, react_1.useMemo)(function () {
45
45
  var _a;
@@ -216,6 +216,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
216
216
  setRecipientAddressError(undefined);
217
217
  onlyChangeAddress.current = false;
218
218
  setInfoDialogContent(undefined);
219
+ setEstimateFee(undefined);
219
220
  };
220
221
  var handleClearRecipientAddress = function () {
221
222
  setRecipientAddress("");
@@ -376,7 +377,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
376
377
  return [2 /*return*/];
377
378
  }
378
379
  });
379
- }); }, [amount, selectedToken, selectedMethod]);
380
+ }); }, [selectedToken, validateAmount, amount, selectedMethod]);
380
381
  var openScannerAddressQrCode = function () {
381
382
  var _a;
382
383
  (_a = scannerAddressQrCodeRef.current) === null || _a === void 0 ? void 0 : _a.open();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.506",
3
+ "version": "0.0.508",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",