fix(frontend): useAlbumData albumApi import 수정
- albumsApi → albumApi로 수정 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
5e03e48be5
commit
6c25d32259
1 changed files with 4 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { useQuery } from '@tanstack/react-query';
|
||||
import { albumsApi } from '@/api';
|
||||
import { albumApi } from '@/api';
|
||||
|
||||
/**
|
||||
* 앨범 목록 조회 훅
|
||||
|
|
@ -7,7 +7,7 @@ import { albumsApi } from '@/api';
|
|||
export function useAlbums() {
|
||||
return useQuery({
|
||||
queryKey: ['albums'],
|
||||
queryFn: albumsApi.getAlbums,
|
||||
queryFn: albumApi.getAlbums,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ export function useAlbums() {
|
|||
export function useAlbumDetail(title) {
|
||||
return useQuery({
|
||||
queryKey: ['album', title],
|
||||
queryFn: () => albumsApi.getAlbumByTitle(title),
|
||||
queryFn: () => albumApi.getAlbumByTitle(title),
|
||||
enabled: !!title,
|
||||
});
|
||||
}
|
||||
|
|
@ -30,7 +30,7 @@ export function useAlbumDetail(title) {
|
|||
export function useAlbumGallery(title) {
|
||||
return useQuery({
|
||||
queryKey: ['album-gallery', title],
|
||||
queryFn: () => albumsApi.getAlbumGallery(title),
|
||||
queryFn: () => albumApi.getAlbumGallery(title),
|
||||
enabled: !!title,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue