tek-wallet 0.0.352 → 0.0.353
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.
|
@@ -275,7 +275,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
275
275
|
console.warn("🚀 ~ handleSelectTransferInternal ~ sendInfoGet:", sendInfoGet);
|
|
276
276
|
setRecipientAddress(recipientAddressInternal);
|
|
277
277
|
setSelectedMethod(SendMethods.TRANSFER_INTERNAL);
|
|
278
|
-
if (
|
|
278
|
+
if (onlyChangeAddress.current) {
|
|
279
279
|
return;
|
|
280
280
|
}
|
|
281
281
|
setAmount(getAmountAfterDecimal((sendInfoGet === null || sendInfoGet === void 0 ? void 0 : sendInfoGet.amount) || 0, (tokenSet === null || tokenSet === void 0 ? void 0 : tokenSet.decimal) || 0));
|
|
@@ -295,7 +295,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
295
295
|
var tokenSet = findWithdrawToken((data === null || data === void 0 ? void 0 : data.jetton) || "");
|
|
296
296
|
setSelectedMethod(SendMethods.TRANSFER_EXTERNAL);
|
|
297
297
|
setRecipientAddress(data === null || data === void 0 ? void 0 : data.address);
|
|
298
|
-
if (
|
|
298
|
+
if (onlyChangeAddress.current) {
|
|
299
299
|
return;
|
|
300
300
|
}
|
|
301
301
|
if (!tokenSet) {
|
|
@@ -328,6 +328,10 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
328
328
|
break;
|
|
329
329
|
}
|
|
330
330
|
};
|
|
331
|
+
var openScannerAddressQrCode = function () {
|
|
332
|
+
var _a;
|
|
333
|
+
(_a = scannerAddressQrCodeRef.current) === null || _a === void 0 ? void 0 : _a.open();
|
|
334
|
+
};
|
|
331
335
|
var getAmountAfterDecimal = function (amount, decimal) {
|
|
332
336
|
if (!amount)
|
|
333
337
|
return "";
|
|
@@ -492,7 +496,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
492
496
|
placeholder: "Enter recipient address",
|
|
493
497
|
value: recipientAddress,
|
|
494
498
|
onChange: handleChangeRecipientAddress,
|
|
495
|
-
}, rightPart: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8 }), children: [!!recipientAddress && ((0, jsx_runtime_1.jsx)(Button_1.default.Secondary, { sx: __assign(__assign({}, theme.mixins.smallButton), { color: theme.palette.text.warningStatus }), onClick: handleClearRecipientAddress, children: "Clear" })), !recipientAddress && ((0, jsx_runtime_1.jsx)(Button_1.default.Secondary, { sx: __assign({}, theme.mixins.smallButton), children: "Paste" })), (0, jsx_runtime_1.jsx)(material_1.Divider, { orientation: "vertical", variant: "middle", flexItem: true }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("
|
|
499
|
+
}, rightPart: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8 }), children: [!!recipientAddress && ((0, jsx_runtime_1.jsx)(Button_1.default.Secondary, { sx: __assign(__assign({}, theme.mixins.smallButton), { color: theme.palette.text.warningStatus }), onClick: handleClearRecipientAddress, children: "Clear" })), !recipientAddress && ((0, jsx_runtime_1.jsx)(Button_1.default.Secondary, { sx: __assign({}, theme.mixins.smallButton), children: "Paste" })), (0, jsx_runtime_1.jsx)(material_1.Divider, { orientation: "vertical", variant: "middle", flexItem: true }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("qr_scan"), width: 20, onClick: openScannerAddressQrCode })] }) }), !!recipientAddressError && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.validationError), children: recipientAddressError }))] }), selectedMethod === SendMethods.TRANSFER_EXTERNAL && ((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: "Network" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { onClick: handleReSelectNetwork, sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g6, ml: "auto", cursor: "pointer" }), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { width: 20, src: selectedNetwork === null || selectedNetwork === void 0 ? void 0 : selectedNetwork.icon }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.value), children: selectedNetwork === null || selectedNetwork === void 0 ? void 0 : selectedNetwork.name }), (0, jsx_runtime_1.jsx)(Icon_1.default, { width: 10, src: (0, getIcon_1.default)("right_arrow") })] })] })), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.fieldTitle), children: "Amount" }), (0, jsx_runtime_1.jsx)(Input_1.default, { sx: {
|
|
496
500
|
paddingRight: theme.mixins.customPadding.p12,
|
|
497
501
|
}, inputRest: {
|
|
498
502
|
placeholder: "".concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.min_value, " - ").concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.max_value, " ").concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.name),
|