tek-wallet 0.0.551 → 0.0.552
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.
|
@@ -43,7 +43,7 @@ var SmartList = function (props) {
|
|
|
43
43
|
return function () {
|
|
44
44
|
observer.disconnect();
|
|
45
45
|
};
|
|
46
|
-
}, [items === null || items === void 0 ? void 0 : items.length
|
|
46
|
+
}, [items === null || items === void 0 ? void 0 : items.length]);
|
|
47
47
|
return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({ overflowY: "auto", width: "100%", height: "100%" }, props.sx), ref: containerRef, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { height: "fit-content", my: "auto" }), children: [children, hasMore && ((0, jsx_runtime_1.jsx)(material_1.Box, { ref: loadingRef, sx: __assign({ width: "100%" }, loadingComponentProps), children: loadingComponent }))] }) }));
|
|
48
48
|
};
|
|
49
49
|
exports.default = SmartList;
|
|
@@ -155,11 +155,14 @@ function ActivitiesProvider(_a) {
|
|
|
155
155
|
var _a;
|
|
156
156
|
return !((_a = prev === null || prev === void 0 ? void 0 : prev[slug]) === null || _a === void 0 ? void 0 : _a.some(function (prevActivity) { return prevActivity.id === activity.id; }));
|
|
157
157
|
});
|
|
158
|
+
console.warn("🚀 ~ newestActivities ~ newestActivities:", newestActivities);
|
|
158
159
|
var newActivities = __spreadArray(__spreadArray([], ((_e = prev === null || prev === void 0 ? void 0 : prev[slug]) !== null && _e !== void 0 ? _e : []), true), newestActivities, true);
|
|
160
|
+
console.warn("🚀 ~ setActivities ~ newActivities:", newActivities);
|
|
159
161
|
var page = Math.floor(newActivities.length / const_1.ACTIVITIES_PAGE_SIZE);
|
|
160
162
|
if (page >= maxPage_1) {
|
|
161
163
|
page = type_1.MAX_PAGE;
|
|
162
164
|
}
|
|
165
|
+
console.warn("🚀 ~ setActivities ~ page:", page);
|
|
163
166
|
setPages(function (prev) {
|
|
164
167
|
var _a;
|
|
165
168
|
return (__assign(__assign({}, prev), (_a = {}, _a[slug] = page, _a)));
|
|
@@ -208,11 +211,14 @@ function ActivitiesProvider(_a) {
|
|
|
208
211
|
var _a;
|
|
209
212
|
return !((_a = prev === null || prev === void 0 ? void 0 : prev[slug]) === null || _a === void 0 ? void 0 : _a.some(function (prevActivity) { return prevActivity.id === activity.id; }));
|
|
210
213
|
});
|
|
214
|
+
console.warn("🚀 ~ newestActivities ~ newestActivities:", newestActivities);
|
|
211
215
|
var newActivities = __spreadArray(__spreadArray([], ((_e = prev === null || prev === void 0 ? void 0 : prev[slug]) !== null && _e !== void 0 ? _e : []), true), newestActivities, true);
|
|
216
|
+
console.warn("🚀 ~ setActivities ~ newActivities:", newActivities);
|
|
212
217
|
var page = Math.floor(newActivities.length / const_1.ACTIVITIES_PAGE_SIZE);
|
|
213
218
|
if (page >= maxPage) {
|
|
214
219
|
page = type_1.MAX_PAGE;
|
|
215
220
|
}
|
|
221
|
+
console.warn("🚀 ~ setActivities ~ page:", page);
|
|
216
222
|
setPages(function (prev) {
|
|
217
223
|
var _a;
|
|
218
224
|
return (__assign(__assign({}, prev), (_a = {}, _a[slug] = page, _a)));
|