tek-wallet 0.0.762 → 0.0.763
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.
|
@@ -12,8 +12,8 @@ var useWallet_1 = __importDefault(require("../../../hooks/useWallet"));
|
|
|
12
12
|
var react_1 = require("react");
|
|
13
13
|
var ActivityDetail_1 = __importDefault(require("../../ui/ActivityDetail"));
|
|
14
14
|
var EmptyData_1 = __importDefault(require("../../ui/EmptyData"));
|
|
15
|
-
var DefaultPageLayout_1 = __importDefault(require("../../layouts/DefaultPageLayout"));
|
|
16
15
|
var getIcon_1 = __importDefault(require("../../../utils/getIcon"));
|
|
16
|
+
var DefaultPageLayout_1 = __importDefault(require("../../layouts/DefaultPageLayout"));
|
|
17
17
|
var DetailActivityView = function (props) {
|
|
18
18
|
var sx = props.sx, id = props.id;
|
|
19
19
|
var activities = (0, useWallet_1.default)().activities;
|
|
@@ -23,7 +23,6 @@ var material_1 = require("@mui/material");
|
|
|
23
23
|
var ChildPageLayout_1 = __importDefault(require("../../layouts/ChildPageLayout"));
|
|
24
24
|
var ListItemCustom_1 = __importDefault(require("../../ui/ListItemCustom"));
|
|
25
25
|
var ChangePasscode_1 = __importDefault(require("../../ui/ChangePasscode"));
|
|
26
|
-
var Button_1 = __importDefault(require("../../ui/Button"));
|
|
27
26
|
var providers_1 = require("../../../providers");
|
|
28
27
|
var TekWalletProvider_1 = require("../../../providers/TekWalletProvider");
|
|
29
28
|
var SvgPath_1 = require("../../ui/SvgPath");
|
|
@@ -31,16 +30,17 @@ var SettingView = function (props) {
|
|
|
31
30
|
var _a = props;
|
|
32
31
|
var theme = (0, providers_1.useTheme)();
|
|
33
32
|
var onLogout = (0, TekWalletProvider_1.useWalletConfig)().onLogout;
|
|
34
|
-
return ((0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { header: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { title: "Setting" }), children: (0, jsx_runtime_1.jsxs)(DefaultPageLayout_1.default, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g16 }), children: [(0, jsx_runtime_1.jsx)(ChangePasscode_1.default, { children: (0, jsx_runtime_1.jsx)(ListItemCustom_1.default, { hideTag: true, title: "Change Passcode", description: "Change your passcode", icon: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "2rem", height: "2rem" }, children: SvgPath_1.IC_CHANGE_PASSCODE }) }) }), (0, jsx_runtime_1.jsx)(
|
|
33
|
+
return ((0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { header: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { title: "Setting" }), children: (0, jsx_runtime_1.jsxs)(DefaultPageLayout_1.default, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g16 }), children: [(0, jsx_runtime_1.jsx)(ChangePasscode_1.default, { children: (0, jsx_runtime_1.jsx)(ListItemCustom_1.default, { hideTag: true, title: "Change Passcode", description: "Change your passcode", icon: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "2rem", height: "2rem" }, children: SvgPath_1.IC_CHANGE_PASSCODE }) }) }), (0, jsx_runtime_1.jsx)("button", { style: {
|
|
35
34
|
marginTop: "auto",
|
|
36
35
|
borderRadius: theme.mixins.customRadius.r12,
|
|
37
36
|
textTransform: "capitalize",
|
|
38
37
|
position: "relative",
|
|
39
|
-
|
|
40
|
-
py: theme.mixins.customPadding.p12,
|
|
38
|
+
padding: "".concat(theme.mixins.customPadding.p12, " ").concat(theme.mixins.customPadding.p16),
|
|
41
39
|
fontWeight: theme.typography.fontWeight500,
|
|
42
40
|
fontSize: theme.typography.fontSize14,
|
|
43
41
|
lineHeight: theme.typography.leading100,
|
|
42
|
+
backgroundColor: theme.palette.background.error,
|
|
43
|
+
color: theme.palette.text.white,
|
|
44
44
|
}, onClick: onLogout, children: "Logout" })] }) }));
|
|
45
45
|
};
|
|
46
46
|
exports.SettingView = SettingView;
|