tek-wallet 0.0.348 → 0.0.351
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.
|
@@ -351,14 +351,6 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
351
351
|
setSelectedNetwork(network);
|
|
352
352
|
gotoStep(WithdrawStep.CONFIRM);
|
|
353
353
|
};
|
|
354
|
-
// const handleValidateWalletAddress = async (
|
|
355
|
-
// data: ValidateWalletAddressBody
|
|
356
|
-
// ) => {
|
|
357
|
-
// const validateWalletAddress = await validateWalletAddressService({
|
|
358
|
-
// address: data?.address,
|
|
359
|
-
// network: data?.network,
|
|
360
|
-
// });
|
|
361
|
-
// };
|
|
362
354
|
var handleValidateWalletAddress = function (address, network) { return __awaiter(void 0, void 0, void 0, function () {
|
|
363
355
|
var validateWalletAddress;
|
|
364
356
|
var _a;
|
|
@@ -421,6 +413,9 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
421
413
|
// if(validateWalletAddress?.is_current_wallet) {
|
|
422
414
|
// return
|
|
423
415
|
// }
|
|
416
|
+
if (!!(validateWalletAddress === null || validateWalletAddress === void 0 ? void 0 : validateWalletAddress.valid)) {
|
|
417
|
+
setRecipientAddressError(undefined);
|
|
418
|
+
}
|
|
424
419
|
if (!!(validateWalletAddress === null || validateWalletAddress === void 0 ? void 0 : validateWalletAddress.master_wallet_address)) {
|
|
425
420
|
//internal
|
|
426
421
|
console.warn("internal");
|
|
@@ -498,11 +493,10 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
498
493
|
placeholder: "Enter memo",
|
|
499
494
|
value: memo,
|
|
500
495
|
onChange: handleChangeMemo,
|
|
501
|
-
} })] })), (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100%" }, status: amountError ||
|
|
496
|
+
} })] })), (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100%" }, status: !!amountError ||
|
|
502
497
|
!recipientAddress ||
|
|
503
498
|
!amount ||
|
|
504
499
|
!selectedToken ||
|
|
505
|
-
!selectedNetwork ||
|
|
506
500
|
!!recipientAddressError
|
|
507
501
|
? Button_1.BUTTON_STATUS.DISABLED
|
|
508
502
|
: Button_1.BUTTON_STATUS.ENABLED, children: "Confirm" })] }) }, WithdrawStep.CONFIRM)] }, withdrawTokens === null || withdrawTokens === void 0 ? void 0 : withdrawTokens.length), (0, jsx_runtime_1.jsx)(QrCodeReader_1.default, { ref: scannerAllQrCodeRef, onResult: handleScanAllQrCode }), (0, jsx_runtime_1.jsx)(QrCodeReader_1.default, { ref: scannerAddressQrCodeRef, onResult: handleScanAddressQrCode }), (0, jsx_runtime_1.jsx)(AppBackDrop_1.default, { ref: backDropRef }), (0, jsx_runtime_1.jsx)(AppDialog_1.default, { overrideOpen: !!infoDialogContent, children: (0, jsx_runtime_1.jsx)(DialogContentLayout_1.default, { content: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|