split items section

This commit is contained in:
Jurgis Sakalauskas committed 2025-10-14 14:05:57 +03:00
1 parent 5cd864318f
commit e30e116187
7 files changed
+601 -490

No files matched your search

+2 -4
View File
@@ -10,17 +10,15 @@ function AppLayout() {
const location = useLocation();
const { data, isLoading, isError } = useProjectsQuery();
const projects = data?.data ?? [];
const recentProjects = useMemo(
() =>
[...projects]
[...(data?.data ?? [])]
.sort(
(a, b) =>
new Date(b.updatedAt).getTime() - new Date(a.updatedAt).getTime()
)
.slice(0, 3),
[projects]
[data?.data]
);
const isInitialDesktop = typeof window !== 'undefined'