Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion apps/entropy-explorer/src/components/Home/search-controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,22 @@ const useSearchBar = () => {
};

export const Paginator = (props: ComponentProps<typeof ResolvedPaginator>) => (
<Suspense fallback={<Paginator {...props} />}>
<Suspense
fallback={
<PaginatorImpl
numPages={1}
currentPage={1}
onPageChange={() => {}} // eslint-disable-line @typescript-eslint/no-empty-function
pageSize={10}
pageSizeOptions={[10, 25, 50]}
onPageSizeChange={() => {}} // eslint-disable-line @typescript-eslint/no-empty-function
isPageTransitioning={true}
isPageSizeTransitioning={true}
className={props.className}
mkPageLink={props.mkPageLink}
/>
}
>
<ResolvedPaginator {...props} />
</Suspense>
);
Expand Down
Loading