tek-wallet 0.0.309 → 0.0.311
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.
|
@@ -196,7 +196,8 @@ var LockToken = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
196
196
|
}, [validateAmount]);
|
|
197
197
|
return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(ConfirmLayout_1.default, { ref: confirmByPasscodeDrawerRef, action: type_1.ActionConfirm.LOCK, trigger: props.children, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.paper), children: (0, jsx_runtime_1.jsx)(LineValue_1.default, { field: "Amount", value: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: props.lockData.amount, unit: token === null || token === void 0 ? void 0 : token.name }) }) }), (0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign({}, theme.mixins.value), children: ["Your balance is", " ", (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
198
198
|
fontWeight: theme.typography.fontWeight600,
|
|
199
|
-
|
|
199
|
+
color: theme.palette.text.secondary,
|
|
200
|
+
}, children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: token === null || token === void 0 ? void 0 : token.balance, unit: " ".concat(token === null || token === void 0 ? void 0 : token.name) }) })] }), !!error && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.validationError), { mt: theme.mixins.gaps.g6 }), children: [error, " ", !!errorAmount && ((0, jsx_runtime_1.jsx)(Formatter_1.default, { value: errorAmount, unit: " ".concat(token === null || token === void 0 ? void 0 : token.name) }))] })), (0, jsx_runtime_1.jsx)(ConfirmByPasscode_1.default, { action: type_1.ActionConfirm.LOCK, onConfirmSuccess: handleLockToken, children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { status: !!error ? Button_1.BUTTON_STATUS.DISABLED : buttonStatus, sx: { width: "100%" }, children: "Confirm" }) })] }) }) }));
|
|
200
201
|
});
|
|
201
202
|
LockToken.displayName = "LockToken";
|
|
202
203
|
exports.default = LockToken;
|
|
@@ -109,7 +109,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
109
109
|
var isAuthenticated = (0, useWalletData_1.default)().isAuthenticated;
|
|
110
110
|
var _d = (0, useWithdrawData_1.default)(), withdrawTokens = _d.withdrawTokens, updateWithdrawToken = _d.updateWithdrawToken;
|
|
111
111
|
var _e = (0, react_1.useState)(), infoDialogContent = _e[0], setInfoDialogContent = _e[1];
|
|
112
|
-
var _f = (0, react_1.useState)(
|
|
112
|
+
var _f = (0, react_1.useState)(""), amount = _f[0], setAmount = _f[1];
|
|
113
113
|
var _g = (0, react_1.useState)(undefined), memo = _g[0], setMemo = _g[1];
|
|
114
114
|
var _h = (0, react_1.useState)(undefined), recipientAddress = _h[0], setRecipientAddress = _h[1];
|
|
115
115
|
var scannerAllQrCodeRef = (0, react_1.useRef)(null);
|
|
@@ -309,7 +309,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
309
309
|
}
|
|
310
310
|
setSelectedMethod(SendMethods.TRANSFER_INTERNAL);
|
|
311
311
|
setRecipientAddress(recipientAddressInternal);
|
|
312
|
-
|
|
312
|
+
setAmount((sendInfoGet === null || sendInfoGet === void 0 ? void 0 : sendInfoGet.amount) || "");
|
|
313
313
|
};
|
|
314
314
|
var handleSelectContinueTransferExternal = function () {
|
|
315
315
|
var _a;
|
|
@@ -325,7 +325,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
325
325
|
}
|
|
326
326
|
setSelectedMethod(SendMethods.TRANSFER_EXTERNAL);
|
|
327
327
|
setRecipientAddress(sendInfoGet === null || sendInfoGet === void 0 ? void 0 : sendInfoGet.address);
|
|
328
|
-
|
|
328
|
+
setAmount((sendInfoGet === null || sendInfoGet === void 0 ? void 0 : sendInfoGet.amount) || "");
|
|
329
329
|
setMemo(sendInfoGet === null || sendInfoGet === void 0 ? void 0 : sendInfoGet.text);
|
|
330
330
|
};
|
|
331
331
|
(0, react_1.useEffect)(function () {
|
|
@@ -374,7 +374,8 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
374
374
|
onChange: handleChangeAmount,
|
|
375
375
|
}, rightPart: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.row), children: (0, jsx_runtime_1.jsx)(Button_1.default.Secondary, { sx: __assign({}, theme.mixins.smallButton), children: "Max" }) }) }), (0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign({}, theme.mixins.value), children: ["Your balance is", " ", (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
376
376
|
fontWeight: theme.typography.fontWeight600,
|
|
377
|
-
|
|
377
|
+
color: theme.palette.text.secondary,
|
|
378
|
+
}, children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.balance, unit: " ".concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.name) }) })] })] }), selectedMethod === SendMethods.TRANSFER_EXTERNAL && ((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: "Memo" }), (0, jsx_runtime_1.jsx)(Input_1.default, { inputRest: {
|
|
378
379
|
placeholder: "Enter memo",
|
|
379
380
|
value: memo,
|
|
380
381
|
onChange: handleChangeMemo,
|
package/dist/theme/mui/theme.js
CHANGED