Skip to content

Commit

Permalink
fix: 더미 데이터 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
seongminn committed Nov 30, 2023
1 parent ec37c9a commit 8b82d45
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions src/queries/useSportsListByLeagueId/Fetcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 8b82d45

Please sign in to comment.