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