tek-wallet 0.0.112 → 0.0.114
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.
|
@@ -82,27 +82,27 @@ var GetSeedPhraseWalletView = function (props) {
|
|
|
82
82
|
setCurrentStep(step);
|
|
83
83
|
(_a = swiperControlledRef.current) === null || _a === void 0 ? void 0 : _a.slideTo(step);
|
|
84
84
|
};
|
|
85
|
-
var
|
|
85
|
+
var resetValue = function () {
|
|
86
86
|
setOtp("");
|
|
87
87
|
setSeedPhrase(undefined);
|
|
88
|
+
setIsShowSeedPhrase(false);
|
|
89
|
+
setCurrentStep(GetSeedPhraseWalletViewStep.ENTER_PASSCODE);
|
|
88
90
|
};
|
|
89
91
|
var toggleShowSeedPhrase = function () {
|
|
90
92
|
setIsShowSeedPhrase(!isShowSeedPhrase);
|
|
91
93
|
};
|
|
92
94
|
var handleDone = function () {
|
|
93
95
|
props.onBack();
|
|
94
|
-
|
|
96
|
+
resetValue();
|
|
95
97
|
};
|
|
96
98
|
var handleBack = function () {
|
|
97
99
|
switch (currentStep) {
|
|
98
100
|
case GetSeedPhraseWalletViewStep.SHOW_SEED_PHRASE:
|
|
99
101
|
// gotoStep(GetSeedPhraseWalletViewStep.ENTER_PASSCODE);
|
|
100
|
-
|
|
101
|
-
clearValues();
|
|
102
|
+
handleDone();
|
|
102
103
|
break;
|
|
103
104
|
case GetSeedPhraseWalletViewStep.ENTER_PASSCODE:
|
|
104
|
-
|
|
105
|
-
clearValues();
|
|
105
|
+
handleDone();
|
|
106
106
|
break;
|
|
107
107
|
default:
|
|
108
108
|
break;
|
|
@@ -141,7 +141,7 @@ var GetSeedPhraseWalletView = function (props) {
|
|
|
141
141
|
console.warn("🚀 ~ handleOtpChange ~ response:", response);
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
|
-
return ((0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { ref: childPageLayoutRef, header: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { overrideBack: handleBack, title: "
|
|
144
|
+
return ((0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { ref: childPageLayoutRef, header: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { overrideBack: handleBack, title: "Backup Wallet" }), children: (0, jsx_runtime_1.jsx)(DefaultPageLayout_1.default, { sx: __assign({ display: "flex", flexDirection: "column", gap: "1rem", height: "100%" }, props.sx), children: (0, jsx_runtime_1.jsxs)(SwiperControlled_1.default, { ref: swiperControlledRef, disableSwipe: true, sx: { height: "100%" }, children: [(0, jsx_runtime_1.jsx)(react_1.SwiperSlide, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
145
145
|
display: "flex",
|
|
146
146
|
flexDirection: "column",
|
|
147
147
|
justifyContent: "center",
|
|
@@ -177,12 +177,11 @@ var GetSeedPhraseWalletView = function (props) {
|
|
|
177
177
|
textAlign: "center",
|
|
178
178
|
width: "100%",
|
|
179
179
|
border: "1px solid rgba(255, 255, 255, 0.2)",
|
|
180
|
-
}, children: [index + 1, ". ", isShowSeedPhrase ? word : "********"] }, index)); }) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
180
|
+
}, children: [index + 1, ". ", isShowSeedPhrase ? word : "********"] }, index)); }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { marginTop: "auto" }, children: "Please do not store your seed phrase digitally (e.g., text files on your computer, email...). Write it down and keep it in a secure, confidential location that is resistant to adverse conditions like moisture, fire, or other hazards for safe storage." }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
181
181
|
display: "flex",
|
|
182
182
|
alignItems: "center",
|
|
183
183
|
gap: "1rem",
|
|
184
184
|
height: "fit-content",
|
|
185
|
-
marginTop: "auto",
|
|
186
185
|
width: "100%",
|
|
187
186
|
}, children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)(isShowSeedPhrase ? "show_seed_phrase" : "hide_seed_phrase", "svg"), onClick: toggleShowSeedPhrase }), (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { onClick: handleDone, sx: {
|
|
188
187
|
flex: 1,
|