tek-wallet 0.0.126 → 0.0.127
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.
|
@@ -31,11 +31,15 @@ var BackHeader = function (props) {
|
|
|
31
31
|
}
|
|
32
32
|
router.back();
|
|
33
33
|
};
|
|
34
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({ display: "flex", alignItems: "center", gap: "1rem", height: "100%" }, props.sx), children: [!hideBack && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({ display: "flex", alignItems: "center", gap: "1rem", height: "100%" }, props.sx), children: [!hideBack && ((0, jsx_runtime_1.jsxs)(material_1.Box, { component: "button", sx: {
|
|
35
35
|
display: "flex",
|
|
36
36
|
alignItems: "center",
|
|
37
|
-
gap: "0.
|
|
37
|
+
gap: "0.25rem",
|
|
38
38
|
cursor: "pointer",
|
|
39
|
+
"&:active": {
|
|
40
|
+
transform: "translateX(-0.25rem)",
|
|
41
|
+
transition: "transform 0.2s ease-in-out",
|
|
42
|
+
},
|
|
39
43
|
}, onClick: back, children: [(0, jsx_runtime_1.jsx)(BackArrow_1.default, {}), " ", (0, jsx_runtime_1.jsx)(Text_1.default, { sx: { color: theme.palette.text.white }, children: "Back" })] })), !!center && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.center), children: center })), children] }));
|
|
40
44
|
};
|
|
41
45
|
exports.default = BackHeader;
|
|
@@ -72,6 +72,6 @@ function GetWalletSeedPhrase(_a) {
|
|
|
72
72
|
var _a;
|
|
73
73
|
(_a = getSeedPhraseViewRef.current) === null || _a === void 0 ? void 0 : _a.close();
|
|
74
74
|
};
|
|
75
|
-
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)(material_1.Box, __assign({}, rest, { children: [children, (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { position: "absolute", inset: 0, zIndex: 10 } })] })), children: (0, jsx_runtime_1.jsx)(GetSeedPhraseWalletView_1.default, { onBack: backAuthView }) }) }));
|
|
75
|
+
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)(material_1.Box, __assign({}, rest, { sx: { position: "relative" }, children: [children, (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { position: "absolute", inset: 0, zIndex: 10 } })] })), children: (0, jsx_runtime_1.jsx)(GetSeedPhraseWalletView_1.default, { onBack: backAuthView }) }) }));
|
|
76
76
|
}
|
|
77
77
|
exports.default = GetWalletSeedPhrase;
|
|
@@ -74,7 +74,7 @@ function RequireConnect(_a) {
|
|
|
74
74
|
(_a = authViewRef.current) === null || _a === void 0 ? void 0 : _a.close();
|
|
75
75
|
};
|
|
76
76
|
if (!isAuthenticated) {
|
|
77
|
-
return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: authViewRef, direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, trigger: (0, jsx_runtime_1.jsxs)(material_1.Box, __assign({}, rest, { children: [children, (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { position: "absolute", inset: 0, zIndex: 10 } })] })), children: (0, jsx_runtime_1.jsx)(AuthView_1.default, { onBack: backAuthView }) }));
|
|
77
|
+
return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: authViewRef, direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, trigger: (0, jsx_runtime_1.jsxs)(material_1.Box, __assign({}, rest, { sx: { position: "relative" }, children: [children, (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { position: "absolute", inset: 0, zIndex: 10 } })] })), children: (0, jsx_runtime_1.jsx)(AuthView_1.default, { onBack: backAuthView }) }));
|
|
78
78
|
}
|
|
79
79
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
|
|
80
80
|
}
|