tek-wallet 0.0.445 → 0.0.446
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.
|
@@ -52,12 +52,12 @@ function ActivitiesTypeSlice(props) {
|
|
|
52
52
|
if (!!activitiesByType)
|
|
53
53
|
return;
|
|
54
54
|
updateActivities({
|
|
55
|
-
|
|
55
|
+
transaction_types: type.slug,
|
|
56
56
|
page: 1,
|
|
57
57
|
take: 10,
|
|
58
58
|
});
|
|
59
59
|
}, [isActive, type, activitiesByType, updateActivities]);
|
|
60
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [status === Status.Empty && ((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") })), status === Status.Filled && ((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) {
|
|
60
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { width: "100%" }, children: [status === Status.Empty && ((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") })), status === Status.Filled && ((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) {
|
|
61
61
|
if (!activity)
|
|
62
62
|
return null;
|
|
63
63
|
var dataAsJson = JSON.stringify(activity);
|
|
@@ -125,7 +125,7 @@ function ActivitiesProvider(_a) {
|
|
|
125
125
|
return __generator(this, function (_d) {
|
|
126
126
|
switch (_d.label) {
|
|
127
127
|
case 0:
|
|
128
|
-
slug = (_a = query === null || query === void 0 ? void 0 : query.
|
|
128
|
+
slug = (_a = query === null || query === void 0 ? void 0 : query.transaction_types) !== null && _a !== void 0 ? _a : const_1.ACTIVITIES_TYPE_ALL.slug;
|
|
129
129
|
_d.label = 1;
|
|
130
130
|
case 1:
|
|
131
131
|
_d.trys.push([1, 3, , 4]);
|
|
@@ -172,7 +172,7 @@ function ActivitiesProvider(_a) {
|
|
|
172
172
|
page: page,
|
|
173
173
|
take: const_1.ACTIVITIES_PAGE_SIZE,
|
|
174
174
|
});
|
|
175
|
-
}, [updateActivities]);
|
|
175
|
+
}, [updateActivities, activities]);
|
|
176
176
|
return ((0, jsx_runtime_1.jsx)(exports.ActivitiesContext.Provider, { value: {
|
|
177
177
|
isLoadingActivities: isLoadingActivities,
|
|
178
178
|
activities: activities,
|