tek-wallet 0.0.439 → 0.0.441
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.
|
@@ -87,7 +87,7 @@ var Activities = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
87
87
|
close();
|
|
88
88
|
handleOnClose();
|
|
89
89
|
};
|
|
90
|
-
return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, ref: drawerRef, trigger: props.children, onOpen: props.onOpen, onClose: handleOnClose, children: (0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { header: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { title: "Activities", overrideBack: handleBack }), children: (0, jsx_runtime_1.jsx)(DefaultPageLayout_1.default, { sx: { height: "100%" }, children: (0, jsx_runtime_1.jsx)(SwiperControlled_1.default, { swiperProps: {
|
|
90
|
+
return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, ref: drawerRef, trigger: props.children, onOpen: props.onOpen, onClose: handleOnClose, children: (0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { header: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { title: "Activities", overrideBack: handleBack }), children: (0, jsx_runtime_1.jsx)(DefaultPageLayout_1.default, { sx: { height: "100%" }, children: (0, jsx_runtime_1.jsx)(SwiperControlled_1.default, { disableSwipe: true, swiperProps: {
|
|
91
91
|
slidesPerView: 1,
|
|
92
92
|
spaceBetween: 40,
|
|
93
93
|
}, tabs: activityTypes === null || activityTypes === void 0 ? void 0 : activityTypes.map(function (type, index) {
|
|
@@ -108,15 +108,17 @@ var Activities = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
108
108
|
}, swiperStyle: {
|
|
109
109
|
flex: 1,
|
|
110
110
|
}, children: activityTypes === null || activityTypes === void 0 ? void 0 : activityTypes.map(function (type, index) {
|
|
111
|
+
var _a;
|
|
111
112
|
var activitiesByType = activities === null || activities === void 0 ? void 0 : activities[type.slug];
|
|
112
113
|
var isEmpty = !(activitiesByType === null || activitiesByType === void 0 ? void 0 : activitiesByType.length);
|
|
113
|
-
return ((0, jsx_runtime_1.
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
114
|
+
return ((0, jsx_runtime_1.jsxs)(react_2.SwiperSlide, { style: {
|
|
115
|
+
display: "flex",
|
|
116
|
+
}, children: [isEmpty && ((0, jsx_runtime_1.jsx)(EmptyData_1.default, { icon: (0, getIcon_1.default)(prefix + "empty_" + type.slug), description: "No ".concat((_a = type.name) === null || _a === void 0 ? void 0 : _a.toLowerCase(), " activity") })), !isEmpty && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g12, paddingTop: theme.mixins.customPadding.p16 }), children: activitiesByType === null || activitiesByType === void 0 ? void 0 : activitiesByType.map(function (activity, index) {
|
|
117
|
+
if (!activity)
|
|
118
|
+
return null;
|
|
119
|
+
var dataAsJson = JSON.stringify(activity);
|
|
120
|
+
return (0, jsx_runtime_1.jsx)(ActivityItem_1.default, { data: dataAsJson }, index);
|
|
121
|
+
}) }))] }, index));
|
|
120
122
|
}) }) }) }) }) }));
|
|
121
123
|
});
|
|
122
124
|
Activities.displayName = "Activities";
|
|
@@ -78,7 +78,7 @@ function ActivityItem(props) {
|
|
|
78
78
|
}, [isIncrease, theme]);
|
|
79
79
|
if (!activityData)
|
|
80
80
|
return null;
|
|
81
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.ListItemButton, __assign({ sx: __assign(__assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8, backgroundColor: theme.palette.background.white16, borderRadius: theme.mixins.customRadius.r16, p: theme.mixins.customPadding.p12 }), sx) }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
81
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.ListItemButton, __assign({ sx: __assign(__assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8, backgroundColor: theme.palette.background.white16, borderRadius: theme.mixins.customRadius.r16, p: theme.mixins.customPadding.p12, height: "fit-content" }), sx) }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
82
82
|
width: "fit-content",
|
|
83
83
|
height: "fit-content",
|
|
84
84
|
}, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { src: activityData.icon, width: 24 }) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { width: "fit-content" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.mixins.activityTitle, children: activityData.transaction_type }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.mixins.activityDescription, children: descriptionElement }), status !== type_1.TransactionStatus.Success && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g4 }), children: [status === type_1.TransactionStatus.Processing && ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, { color: "secondary", size: 16 })), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|