From 6c25d3225955467007d4d094132923d73f3db89f Mon Sep 17 00:00:00 2001 From: caadiq Date: Wed, 21 Jan 2026 18:05:14 +0900 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20useAlbumData=20albumApi=20impo?= =?UTF-8?q?rt=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - albumsApi → albumApi로 수정 Co-Authored-By: Claude Opus 4.5 --- frontend-temp/src/hooks/useAlbumData.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend-temp/src/hooks/useAlbumData.js b/frontend-temp/src/hooks/useAlbumData.js index 1ec0068..a51571a 100644 --- a/frontend-temp/src/hooks/useAlbumData.js +++ b/frontend-temp/src/hooks/useAlbumData.js @@ -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, }); }