mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 15:02:42 +01:00
rename to remove "Library" from methods
This commit is contained in:
@@ -54,7 +54,7 @@ export const useCoverArtFile = (coverArt = '-1') => {
|
||||
|
||||
export const useArtistArtFile = (artistId: string) => {
|
||||
const type: CacheItemTypeKey = 'artistArt'
|
||||
const fetchArtistInfo = useStore(store => store.fetchLibraryArtistInfo)
|
||||
const fetchArtistInfo = useStore(store => store.fetchArtistInfo)
|
||||
const artistInfo = useStoreDeep(store => store.entities.artistInfo[artistId])
|
||||
const { file, request } = useFileRequest(type, artistId)
|
||||
const cacheItem = useStore(selectCache.cacheItem)
|
||||
|
||||
@@ -18,9 +18,9 @@ function starParams(id: string, type: StarrableItem): StarParams {
|
||||
}
|
||||
|
||||
export const useStar = (id: string, type: StarrableItem) => {
|
||||
const fetchAlbum = useStore(store => store.fetchLibraryAlbum)
|
||||
const fetchArtist = useStore(store => store.fetchLibraryArtist)
|
||||
const fetchSong = useStore(store => store.fetchLibrarySong)
|
||||
const fetchAlbum = useStore(store => store.fetchAlbum)
|
||||
const fetchArtist = useStore(store => store.fetchArtist)
|
||||
const fetchSong = useStore(store => store.fetchSong)
|
||||
|
||||
const _starred = useStore(
|
||||
useCallback(
|
||||
|
||||
Reference in New Issue
Block a user