cleanup: use href for pagination

This commit is contained in:
James Xylight committed 2025-02-04 17:46:37 -08:00
1 parent 4b150679f9
commit c85f98cdcb
12 files changed
+49 -49

No files matched your search

+2 -4
View File
@@ -119,10 +119,8 @@
<Pageination
page={data.page}
cursor={{ next: data.cursor.next }}
on:change={(p) => searchParam(page.url, 'page', p.detail.toString())}
on:cursor={(c) => {
searchParam(page.url, 'cursor', c.detail)
}}
href={(page) =>
typeof page == 'number' ? `?page=${page}` : `?cursor=${page}`}
>
<span class="flex flex-row items-center gap-1">
<Icon src={ChartBar} size="16" mini />