tek-wallet 0.0.439 → 0.0.440

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.jsx)(react_2.SwiperSlide, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g12 }), children: [isEmpty && ((0, jsx_runtime_1.jsx)(EmptyData_1.default, { icon: (0, getIcon_1.default)(prefix + "empty_" + type.slug), title: "No ".concat(type.name, " activities") })), !isEmpty &&
114
- (activitiesByType === null || activitiesByType === void 0 ? void 0 : activitiesByType.map(function (activity, index) {
115
- if (!activity)
116
- return null;
117
- var dataAsJson = JSON.stringify(activity);
118
- return (0, jsx_runtime_1.jsx)(ActivityItem_1.default, { data: dataAsJson }, index);
119
- }))] }) }, index));
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.439",
3
+ "version": "0.0.440",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",