mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 13:00:25 +02:00
Export selector for list filters
This commit is contained in:
@@ -128,6 +128,8 @@ export const useSetAlbumFilters = () => useAlbumStore((state) => state.actions.s
|
|||||||
|
|
||||||
export const useAlbumListStore = () => useAlbumStore((state) => state.list);
|
export const useAlbumListStore = () => useAlbumStore((state) => state.list);
|
||||||
|
|
||||||
|
export const useAlbumListFilters = () => useAlbumStore((state) => state.list.filter);
|
||||||
|
|
||||||
export const useAlbumTablePagination = () => useAlbumStore((state) => state.list.table.pagination);
|
export const useAlbumTablePagination = () => useAlbumStore((state) => state.list.table.pagination);
|
||||||
|
|
||||||
export const useSetAlbumTablePagination = () =>
|
export const useSetAlbumTablePagination = () =>
|
||||||
|
|||||||
@@ -134,6 +134,8 @@ export const useSongFilters = () => {
|
|||||||
return useSongStore((state) => [state.list.filter, state.actions.setFilters]);
|
return useSongStore((state) => [state.list.filter, state.actions.setFilters]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const useSongListFilters = () => useSongStore((state) => state.list.filter);
|
||||||
|
|
||||||
export const useSongListStore = () => useSongStore((state) => state.list);
|
export const useSongListStore = () => useSongStore((state) => state.list);
|
||||||
|
|
||||||
export const useSongTablePagination = () => useSongStore((state) => state.list.table.pagination);
|
export const useSongTablePagination = () => useSongStore((state) => state.list.table.pagination);
|
||||||
|
|||||||
Reference in New Issue
Block a user