diff --git a/app/components/Dashboard.tsx b/app/components/Dashboard.tsx index c7cbb97..313d761 100644 --- a/app/components/Dashboard.tsx +++ b/app/components/Dashboard.tsx @@ -231,31 +231,6 @@ export default function Page({user}: {user: any}) { return number.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); }; - - // useEffect(() => { - // setLoading(true); - // fetch('/api/channels') - // .then(response => response.json()) - // .then(data => { - // setChanellist(data); - // setSelectedChannels(data); // 기본값으로 모든 채널 선택 - // }) - // .finally(() => setLoading(false)); - // }, []); - - // useEffect(() => { - // setLoading(true); - // fetch('/api/contents') - // .then(response => response.json()) - // .then(data => { - // const sortedData = data.sort((a: any, b: any) => b.views - a.views); - // setContentlist(sortedData); - // }) - // .finally(() => setLoading(false)); - // }, []); - - - useEffect(() => { const handleResize = () => { window.resizeTo(500, 500);