mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-06 10:23:21 +03:00
Fix function naming
This commit is contained in:
parent
1c466d6083
commit
8bd9787c51
@ -13,7 +13,7 @@ import List from './List'
|
|||||||
import { SongDatagrid, SongDatagridRow } from './SongDatagrid'
|
import { SongDatagrid, SongDatagridRow } from './SongDatagrid'
|
||||||
import SongContextMenu from './SongContextMenu'
|
import SongContextMenu from './SongContextMenu'
|
||||||
import QuickFilter from './QuickFilter'
|
import QuickFilter from './QuickFilter'
|
||||||
import useAlbumsPerPage from './useAlbumPerPage'
|
import useAlbumsPerPage from './useAlbumsPerPage'
|
||||||
|
|
||||||
export {
|
export {
|
||||||
Title,
|
Title,
|
||||||
|
@ -17,7 +17,7 @@ const getPerPageOptions = (width) => {
|
|||||||
return options.map((v) => v * 6)
|
return options.map((v) => v * 6)
|
||||||
}
|
}
|
||||||
|
|
||||||
const useAlbumPerPage = (width) => {
|
const useAlbumsPerPage = (width) => {
|
||||||
const perPage =
|
const perPage =
|
||||||
useSelector((state) =>
|
useSelector((state) =>
|
||||||
get(state.admin.resources, ['album', 'list', 'params', 'perPage'])
|
get(state.admin.resources, ['album', 'list', 'params', 'perPage'])
|
||||||
@ -26,4 +26,4 @@ const useAlbumPerPage = (width) => {
|
|||||||
return [perPage, getPerPageOptions(width)]
|
return [perPage, getPerPageOptions(width)]
|
||||||
}
|
}
|
||||||
|
|
||||||
export default useAlbumPerPage
|
export default useAlbumsPerPage
|
Loading…
x
Reference in New Issue
Block a user