mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
cleanup
This commit is contained in:
parent
1f3567ffdc
commit
45b651e994
@ -1,5 +1 @@
|
||||
import React from 'react'
|
||||
|
||||
export const InfinitePagination = () => {
|
||||
return null
|
||||
}
|
||||
export const InfinitePagination = () => null
|
||||
|
||||
@ -12,8 +12,6 @@ import { useHistory, useLocation } from 'react-router-dom'
|
||||
|
||||
const InfiniteScrollContext = createContext(null)
|
||||
|
||||
const APP_BAR_HEIGHT = 64
|
||||
|
||||
const getStorageKey = (pathname, filterValues) => {
|
||||
const filterKey = JSON.stringify(filterValues || {})
|
||||
return `infiniteScroll:${pathname}:${filterKey}`
|
||||
@ -308,6 +306,7 @@ export const InfiniteScrollProvider = ({ children }) => {
|
||||
)
|
||||
}
|
||||
|
||||
// eslint-disable-next-line react-refresh/only-export-components
|
||||
export const useInfiniteScroll = () => {
|
||||
const context = useContext(InfiniteScrollContext)
|
||||
if (!context) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user