Add about page
This commit is contained in:
@ -20,7 +20,9 @@ type ArtworksTableState = {
|
||||
setFilters: (
|
||||
next:
|
||||
| ArtworksTableState["filters"]
|
||||
| ((prev: ArtworksTableState["filters"]) => ArtworksTableState["filters"]),
|
||||
| ((
|
||||
prev: ArtworksTableState["filters"],
|
||||
) => ArtworksTableState["filters"]),
|
||||
) => void;
|
||||
reset: () => void;
|
||||
};
|
||||
@ -40,7 +42,8 @@ export const useArtworksTableStore = create<ArtworksTableState>()(
|
||||
setSorting: (next) => set({ sorting: next }),
|
||||
setPageIndex: (next) =>
|
||||
set((state) => {
|
||||
const value = typeof next === "function" ? next(state.pageIndex) : next;
|
||||
const value =
|
||||
typeof next === "function" ? next(state.pageIndex) : next;
|
||||
return { pageIndex: Math.max(0, value) };
|
||||
}),
|
||||
setPageSize: (next) => set({ pageSize: next }),
|
||||
|
||||
Reference in New Issue
Block a user