mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
Export selector for list filters
This commit is contained in:
parent
2f7f6bead9
commit
d94d7b5ee5
2 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue