tek-wallet 0.0.104 → 0.0.107

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.
@@ -62,6 +62,6 @@ function GetWalletSeedPhrase(_a) {
62
62
  var _a;
63
63
  (_a = getSeedPhraseViewRef.current) === null || _a === void 0 ? void 0 : _a.close();
64
64
  };
65
- return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, trigger: (0, jsx_runtime_1.jsxs)("button", { className: (0, cn_1.default)("relative", className), children: [children, " ", (0, jsx_runtime_1.jsx)("div", { className: "absolute inset-0 z-10" })] }), children: (0, jsx_runtime_1.jsx)(GetSeedPhraseWalletView_1.default, { onBack: backAuthView }) }) }));
65
+ return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: getSeedPhraseViewRef, direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, trigger: (0, jsx_runtime_1.jsxs)("button", { className: (0, cn_1.default)("relative", className), children: [children, " ", (0, jsx_runtime_1.jsx)("div", { className: "absolute inset-0 z-10" })] }), children: (0, jsx_runtime_1.jsx)(GetSeedPhraseWalletView_1.default, { onBack: backAuthView }) }) }));
66
66
  }
67
67
  exports.default = GetWalletSeedPhrase;
@@ -64,7 +64,7 @@ function RequireConnect(_a) {
64
64
  (_a = authViewRef.current) === null || _a === void 0 ? void 0 : _a.close();
65
65
  };
66
66
  if (!isAuthenticated) {
67
- return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, trigger: (0, jsx_runtime_1.jsxs)("button", { className: (0, cn_1.default)("relative", className), children: [children, " ", (0, jsx_runtime_1.jsx)("div", { className: "absolute inset-0 z-10" })] }), children: (0, jsx_runtime_1.jsx)(AuthView_1.default, { onBack: backAuthView }) }));
67
+ return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: authViewRef, direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, trigger: (0, jsx_runtime_1.jsxs)("button", { className: (0, cn_1.default)("relative", className), children: [children, " ", (0, jsx_runtime_1.jsx)("div", { className: "absolute inset-0 z-10" })] }), children: (0, jsx_runtime_1.jsx)(AuthView_1.default, { onBack: backAuthView }) }));
68
68
  }
69
69
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
70
70
  }
@@ -102,6 +102,7 @@ var GetSeedPhraseWalletView = function (props) {
102
102
  }, 1500);
103
103
  };
104
104
  var handleOtpChange = function (value) {
105
+ setOtp(value);
105
106
  /**
106
107
  * validate otp here
107
108
  */
@@ -46,19 +46,11 @@ function getSeedPhraseService(body) {
46
46
  var response;
47
47
  return __generator(this, function (_a) {
48
48
  switch (_a.label) {
49
- case 0: return [4 /*yield*/, userClientRequest_1.default.post("/get-seed-phrase", body)];
49
+ case 0: return [4 /*yield*/, userClientRequest_1.default.post("/wallets/export/seed-pharse", body)];
50
50
  case 1:
51
51
  response = _a.sent();
52
52
  console.warn("🚀 ~ response:", response);
53
- // return response.data;
54
- return [2 /*return*/, new Promise(function (resolve) {
55
- setTimeout(function () {
56
- resolve({
57
- success: true,
58
- seedPhrase: "bạn có thể dễ dàng tùy chỉnh hiệu ứng văn bản được tô đen khi người dùng chọn trong",
59
- });
60
- }, 1000);
61
- })];
53
+ return [2 /*return*/, response.data];
62
54
  }
63
55
  });
64
56
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.104",
3
+ "version": "0.0.107",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",