Fix function naming

This commit is contained in:
Deluan 2020-06-09 20:45:53 -04:00
parent 1c466d6083
commit 8bd9787c51
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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