tek-wallet 0.0.824 → 0.0.825
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.
|
@@ -102,74 +102,74 @@ var AssetView = function (props) {
|
|
|
102
102
|
return [2 /*return*/, updateWalletDetail()];
|
|
103
103
|
});
|
|
104
104
|
}); };
|
|
105
|
-
return ((0, jsx_runtime_1.jsxs)(ChildPageLayout_1.default, { header: !!isInitPasscode && (0, jsx_runtime_1.jsx)(AssetViewHeader_1.default, {}), pullToRefreshProps: {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
105
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [!isInitPasscode && !!masterWallet && ((0, jsx_runtime_1.jsx)(ChangePasscodeView_1.default, { isInitPasscode: true, onBack: handleBackInitPasscodeView, idPrefix: idPrefix })), !!isInitPasscode && ((0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { header: !!isInitPasscode && (0, jsx_runtime_1.jsx)(AssetViewHeader_1.default, {}), pullToRefreshProps: {
|
|
106
|
+
isPullable: !!isInitPasscode,
|
|
107
|
+
onRefresh: handleRefresh,
|
|
108
|
+
}, children: (0, jsx_runtime_1.jsxs)(DefaultPageLayout_1.default, __assign({}, rest, { sx: __assign({ display: "flex", flexDirection: "column", gap: theme.styleMixins.gaps.g16 }, sx), children: [useBasicAmountGroupInAssetView ? (0, jsx_runtime_1.jsx)(BasicAmountGroup_1.default, {}) : (0, jsx_runtime_1.jsx)(AmountGroupAndChart_1.default, {}), (0, jsx_runtime_1.jsx)(Menu_1.default, { sx: {
|
|
109
|
+
gridTemplateColumns: "1fr 1px 1fr 1px 1fr",
|
|
110
|
+
}, items: [
|
|
111
|
+
(0, jsx_runtime_1.jsx)(ReceiveFunction_1.default, { children: (0, jsx_runtime_1.jsx)(material_1.ListItem, { component: ClickEffect_1.default, sx: {
|
|
112
|
+
placeContent: "center",
|
|
113
|
+
columnSpan: 1,
|
|
114
|
+
}, children: (0, jsx_runtime_1.jsx)(FunctionItem_1.default, { icon: "IC_RECEIVE", label: "Receive", sx: {
|
|
115
|
+
width: "100%",
|
|
116
|
+
} }) }) }, "receive"),
|
|
117
|
+
(0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
118
|
+
width: "100%",
|
|
119
|
+
height: "100%",
|
|
120
|
+
backgroundColor: theme.palette.divider,
|
|
121
|
+
} }, "divider-1"),
|
|
122
|
+
(0, jsx_runtime_1.jsx)(link_1.default, { href: "".concat(basePath || "", "/tek-wallet/send/external"), children: (0, jsx_runtime_1.jsx)(material_1.ListItem, { component: ClickEffect_1.default, sx: {
|
|
123
|
+
placeContent: "center",
|
|
124
|
+
columnSpan: 1,
|
|
125
|
+
}, children: (0, jsx_runtime_1.jsx)(FunctionItem_1.default, { icon: "IC_WITHDRAW_FC", label: "Withdraw", sx: { width: "100%" } }) }) }, "withdraw"),
|
|
126
|
+
(0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
127
|
+
width: "100%",
|
|
128
|
+
height: "100%",
|
|
129
|
+
backgroundColor: theme.palette.divider,
|
|
130
|
+
} }, "divider-2"),
|
|
131
|
+
(0, jsx_runtime_1.jsx)(link_1.default, { href: "".concat(basePath || "", "/tek-wallet/send/internal"), children: (0, jsx_runtime_1.jsx)(material_1.ListItem, { component: ClickEffect_1.default, sx: {
|
|
132
|
+
placeContent: "center",
|
|
133
|
+
columnSpan: 1,
|
|
134
|
+
}, children: (0, jsx_runtime_1.jsx)(FunctionItem_1.default, { icon: "IC_TRANSFER", label: "Transfer", sx: { width: "100%" } }) }) }, "send-internal"),
|
|
135
|
+
// <Link href={`${basePath || ""}/tek-wallet/swap`} key="swap">
|
|
136
|
+
// <ListItem
|
|
137
|
+
// component={ClickEffect}
|
|
138
|
+
// sx={{
|
|
139
|
+
// placeContent: "center",
|
|
140
|
+
// columnSpan: 1,
|
|
141
|
+
// }}
|
|
142
|
+
// >
|
|
143
|
+
// <FunctionItem icon={"IC_SWAP_FC"} label="Swap" sx={{ width: "100%" }} />
|
|
144
|
+
// </ListItem>
|
|
145
|
+
// </Link>,
|
|
146
|
+
] }), !hideActivitySectionInAssetView && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
147
|
+
display: "flex",
|
|
148
|
+
gap: theme.styleMixins.gaps.g20,
|
|
149
|
+
}, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.sessionTitle), children: "Activity" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { component: link_1.default, href: "".concat(basePath || "", "/tek-wallet/activity"), sx: {
|
|
150
|
+
marginLeft: "auto",
|
|
151
|
+
display: "flex",
|
|
152
|
+
alignItems: "center",
|
|
153
|
+
color: theme.palette.text.primary,
|
|
154
|
+
}, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
155
|
+
fontSize: theme.typography.fontSize13,
|
|
156
|
+
fontWeight: theme.typography.fontWeight400,
|
|
157
|
+
cursor: "pointer",
|
|
158
|
+
}, children: "View all" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: "IC_ARROW_RIGHT", width: 16, height: 18 })] })] }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
159
|
+
position: "relative",
|
|
160
|
+
left: "-".concat(theme.styleMixins.customPadding.p16),
|
|
161
|
+
width: "calc(100% + ".concat(theme.styleMixins.customPadding.p16, " * 2)"),
|
|
162
|
+
}, children: (0, jsx_runtime_1.jsx)(ActivitiesTypeSlice_1.default, { type: const_1.ACTIVITIES_TYPE_ALL, limitItems: 4, isActive: true, sx: {
|
|
163
|
+
paddingBottom: 0,
|
|
164
|
+
paddingTop: 0,
|
|
165
|
+
paddingLeft: 0,
|
|
166
|
+
paddingRight: 0,
|
|
167
|
+
}, smartListProps: {
|
|
168
|
+
bodySx: {
|
|
169
|
+
pt: 0,
|
|
170
|
+
pb: 0,
|
|
171
|
+
},
|
|
172
|
+
} }) })] })), (0, jsx_runtime_1.jsx)(AssetsBoard_1.default, {})] })) }))] }));
|
|
173
173
|
};
|
|
174
174
|
exports.AssetView = AssetView;
|
|
175
175
|
exports.default = exports.AssetView;
|