From 7d41dbe5b51d8ae49348f3c1134fd33bec148516 Mon Sep 17 00:00:00 2001 From: HiImConan Date: Wed, 29 Nov 2023 06:26:34 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=82=AC=EC=9D=B4=EB=93=9C=EB=B0=94?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EC=96=B4=EB=93=9C=EB=AF=BC=20api=20?= =?UTF-8?q?=ED=98=B8=EC=B6=9C=20=EB=B2=84=EA=B7=B8=20=ED=94=BD=EC=8A=A4,?= =?UTF-8?q?=20=EC=82=AC=EC=9A=A9=EC=9E=90=20api=EB=A1=9C=20=EA=B5=90?= =?UTF-8?q?=EC=B2=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/Sidebar/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/common/Sidebar/index.tsx b/src/components/common/Sidebar/index.tsx index ed0db88..6dc9347 100644 --- a/src/components/common/Sidebar/index.tsx +++ b/src/components/common/Sidebar/index.tsx @@ -3,8 +3,8 @@ import Link from 'next/link'; import { useEffect, useState } from 'react'; -import { getAllLeaguesWithAuth } from '@/api/admin/league'; -import { LeagueType } from '@/types/admin/league'; +import { getAllLeagues } from '@/api/league'; +import { LeagueType } from '@/types/league'; type SidebarProps = { isSidebarOpen: boolean; @@ -15,12 +15,12 @@ export default function Sidebar({ onClickSidebar, }: SidebarProps) { const [menuContent, setMenuContent] = useState([ - { name: '전체', leagueId: 0, startAt: '', endAt: '' }, + { name: '전체', leagueId: 0 }, ]); useEffect(() => { const getLeagueData = async () => { - const res = await getAllLeaguesWithAuth(); + const res = await getAllLeagues(); setMenuContent(prev => [...prev, ...res]); };