tek-wallet 0.0.515 → 0.0.516

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.
@@ -116,7 +116,7 @@ var Formatter_1 = __importDefault(require("../Formatter"));
116
116
  var get_est_fee_service_1 = __importDefault(require("../../../services/axios/get-est-fee-service"));
117
117
  var Fees_1 = __importDefault(require("../Fees"));
118
118
  var type_1 = require("../../../services/axios/get-activities-service/type");
119
- var SendExternalToken_1 = __importDefault(require("../SendExternalToken"));
119
+ // import SendExternalToken from "../SendExternalToken";
120
120
  var SendInternalToken_1 = __importDefault(require("../SendInternalToken"));
121
121
  var createDebounce_1 = __importDefault(require("../../../utils/createDebounce"));
122
122
  var type_2 = require("../../../services/axios/validate-wallet-address-service/type");
@@ -587,21 +587,28 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
587
587
  placeholder: "Enter memo",
588
588
  value: memo,
589
589
  onChange: handleChangeMemo,
590
- } })] })), !!((_a = estimateFee === null || estimateFee === void 0 ? void 0 : estimateFee.feeDetail) === null || _a === void 0 ? void 0 : _a.length) && !!amount && ((0, jsx_runtime_1.jsx)(Fees_1.default, { feesData: JSON.stringify(estimateFee), amount: +amount })), estimateReceive !== undefined && !amountError && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.row), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.fieldTitle), children: "Receive amount estimated" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { ml: "auto" }), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: estimateReceive }) })] })), selectedMethod === SendMethods.TRANSFER_EXTERNAL && ((0, jsx_runtime_1.jsx)(SendExternalToken_1.default, { initFeeData: estimateFee, sendExternalData: {
591
- amount: "".concat(amount),
592
- currency_slug: (selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.slug) || "",
593
- to_address: recipientAddress || "",
594
- network: selectedNetwork,
595
- memo: memo || "",
596
- }, onSuccess: close, children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100%" }, status: !!amountError ||
597
- !!recipientAddressError ||
598
- !recipientAddress ||
599
- !amount ||
600
- !selectedToken ||
601
- isLoadingEstimateFee ||
602
- isValidatingAddress
603
- ? Button_1.BUTTON_STATUS.DISABLED
604
- : Button_1.BUTTON_STATUS.ENABLED, children: "Continue" }) })), selectedMethod === SendMethods.TRANSFER_INTERNAL && ((0, jsx_runtime_1.jsx)(SendInternalToken_1.default, { initFeeData: estimateFee, sendInternalData: {
590
+ } })] })), !!((_a = estimateFee === null || estimateFee === void 0 ? void 0 : estimateFee.feeDetail) === null || _a === void 0 ? void 0 : _a.length) && !!amount && ((0, jsx_runtime_1.jsx)(Fees_1.default, { feesData: JSON.stringify(estimateFee), amount: +amount })), estimateReceive !== undefined && !amountError && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.row), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.fieldTitle), children: "Receive amount estimated" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { ml: "auto" }), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: estimateReceive }) })] })), selectedMethod === SendMethods.TRANSFER_EXTERNAL && (
591
+ // <SendExternalToken
592
+ // initFeeData={estimateFee}
593
+ // sendExternalData={{
594
+ // amount: `${amount}`,
595
+ // currency_slug: selectedToken?.slug || "",
596
+ // to_address: recipientAddress || "",
597
+ // network: selectedNetwork as NetworkData,
598
+ // memo: memo || "",
599
+ // }}
600
+ // onSuccess={close}
601
+ // >
602
+ // </SendExternalToken>
603
+ (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100%" }, status: !!amountError ||
604
+ !!recipientAddressError ||
605
+ !recipientAddress ||
606
+ !amount ||
607
+ !selectedToken ||
608
+ isLoadingEstimateFee ||
609
+ isValidatingAddress
610
+ ? Button_1.BUTTON_STATUS.DISABLED
611
+ : Button_1.BUTTON_STATUS.ENABLED, children: "Continue" })), selectedMethod === SendMethods.TRANSFER_INTERNAL && ((0, jsx_runtime_1.jsx)(SendInternalToken_1.default, { initFeeData: estimateFee, sendInternalData: {
605
612
  amount: "".concat(amount),
606
613
  currency_slug: (selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.slug) || "",
607
614
  to_address: recipientAddress || "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.515",
3
+ "version": "0.0.516",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",