tek-wallet 0.0.114 → 0.0.116
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.
|
@@ -87,6 +87,7 @@ var GetSeedPhraseWalletView = function (props) {
|
|
|
87
87
|
setSeedPhrase(undefined);
|
|
88
88
|
setIsShowSeedPhrase(false);
|
|
89
89
|
setCurrentStep(GetSeedPhraseWalletViewStep.ENTER_PASSCODE);
|
|
90
|
+
gotoStep(GetSeedPhraseWalletViewStep.ENTER_PASSCODE);
|
|
90
91
|
};
|
|
91
92
|
var toggleShowSeedPhrase = function () {
|
|
92
93
|
setIsShowSeedPhrase(!isShowSeedPhrase);
|
|
@@ -117,12 +118,14 @@ var GetSeedPhraseWalletView = function (props) {
|
|
|
117
118
|
}, 1500);
|
|
118
119
|
};
|
|
119
120
|
var handleOtpChange = function (value) {
|
|
121
|
+
var _a;
|
|
120
122
|
setOtp(value);
|
|
121
123
|
/**
|
|
122
124
|
* validate otp here
|
|
123
125
|
*/
|
|
124
126
|
if (value.length === passcodeLength) {
|
|
125
|
-
|
|
127
|
+
(_a = childPageLayoutRef.current) === null || _a === void 0 ? void 0 : _a.showLoading();
|
|
128
|
+
getSeedPhrase({
|
|
126
129
|
passcode: value,
|
|
127
130
|
}, function () {
|
|
128
131
|
var _a;
|
|
@@ -138,7 +141,6 @@ var GetSeedPhraseWalletView = function (props) {
|
|
|
138
141
|
gotoStep(GetSeedPhraseWalletViewStep.SHOW_SEED_PHRASE);
|
|
139
142
|
}, 1000);
|
|
140
143
|
}, handleCreateWalletError);
|
|
141
|
-
console.warn("🚀 ~ handleOtpChange ~ response:", response);
|
|
142
144
|
}
|
|
143
145
|
};
|
|
144
146
|
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: {
|