tek-wallet 0.0.112 → 0.0.113

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.
@@ -91,18 +91,17 @@ var GetSeedPhraseWalletView = function (props) {
91
91
  };
92
92
  var handleDone = function () {
93
93
  props.onBack();
94
+ setCurrentStep(GetSeedPhraseWalletViewStep.ENTER_PASSCODE);
94
95
  clearValues();
95
96
  };
96
97
  var handleBack = function () {
97
98
  switch (currentStep) {
98
99
  case GetSeedPhraseWalletViewStep.SHOW_SEED_PHRASE:
99
100
  // gotoStep(GetSeedPhraseWalletViewStep.ENTER_PASSCODE);
100
- props.onBack();
101
- clearValues();
101
+ handleDone();
102
102
  break;
103
103
  case GetSeedPhraseWalletViewStep.ENTER_PASSCODE:
104
- props.onBack();
105
- clearValues();
104
+ handleDone();
106
105
  break;
107
106
  default:
108
107
  break;
@@ -141,7 +140,7 @@ var GetSeedPhraseWalletView = function (props) {
141
140
  console.warn("🚀 ~ handleOtpChange ~ response:", response);
142
141
  }
143
142
  };
144
- return ((0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { ref: childPageLayoutRef, header: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { overrideBack: handleBack, title: "Passcode" }), 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: {
143
+ 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
144
  display: "flex",
146
145
  flexDirection: "column",
147
146
  justifyContent: "center",
@@ -177,12 +176,11 @@ var GetSeedPhraseWalletView = function (props) {
177
176
  textAlign: "center",
178
177
  width: "100%",
179
178
  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: {
179
+ }, 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
180
  display: "flex",
182
181
  alignItems: "center",
183
182
  gap: "1rem",
184
183
  height: "fit-content",
185
- marginTop: "auto",
186
184
  width: "100%",
187
185
  }, 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
186
  flex: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.112",
3
+ "version": "0.0.113",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",