From 8b82d4517a422d6d6acddfeeb730006a8e751902 Mon Sep 17 00:00:00 2001 From: seongminn Date: Thu, 30 Nov 2023 14:42:26 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=8D=94=EB=AF=B8=20=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=84=B0=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../useSportsListByLeagueId/Fetcher.tsx | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/queries/useSportsListByLeagueId/Fetcher.tsx b/src/queries/useSportsListByLeagueId/Fetcher.tsx index 37c063a..b36efd9 100644 --- a/src/queries/useSportsListByLeagueId/Fetcher.tsx +++ b/src/queries/useSportsListByLeagueId/Fetcher.tsx @@ -9,28 +9,13 @@ type SportsListFetcherProps = { children: (data: SportsType[]) => ReactNode; }; -const DUMMY = [ - { - sportId: 1, - name: '축구', - }, - { - sportId: 3, - name: '농구', - }, - { - sportId: 2, - name: '롤', - }, -]; - export default function SportsListFetcher({ leagueId, children, }: SportsListFetcherProps) { - const { error } = useSportsListByLeagueId(leagueId); + const { sportsList, error } = useSportsListByLeagueId(leagueId); if (error) throw error; - return children(DUMMY); + return children(sportsList); }