From 5afb18281f7c6b816ae0f7755044b898030af983 Mon Sep 17 00:00:00 2001 From: Yeolyi Date: Sun, 7 Apr 2024 15:32:29 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A9=94=EC=9D=B8=20=EB=B0=B0=EB=84=88?= =?UTF-8?q?=20=EA=B7=B8=EB=A6=BC=EC=9E=90=20=EC=95=88=EB=B3=B4=EC=9D=B4?= =?UTF-8?q?=EB=8A=94=20=EB=AC=B8=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/main/NewsCard.tsx | 6 ++---- components/main/NewsCarousel.tsx | 4 ++-- components/main/NewsCarouselMobile.tsx | 4 ++-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/components/main/NewsCard.tsx b/components/main/NewsCard.tsx index f8361873..7bdfa909 100644 --- a/components/main/NewsCard.tsx +++ b/components/main/NewsCard.tsx @@ -7,14 +7,12 @@ import { formatMainNewsDateStr } from '@/utils/date'; import { CARD_WIDTH_REM } from './constants'; -export default function NewsCard({ shadow, news }: { shadow: boolean; news: MainNews }) { +export default function NewsCard({ news }: { news: MainNews }) { return (
diff --git a/components/main/NewsCarousel.tsx b/components/main/NewsCarousel.tsx index 26e98915..fa1af9ce 100644 --- a/components/main/NewsCarousel.tsx +++ b/components/main/NewsCarousel.tsx @@ -23,8 +23,8 @@ export default function NewsCarousel({ news }: { news: MainNews[] }) { gap: `${CARD_GAP_REM}rem`, }} > - {news.map((news, idx) => ( - + {news.map((news) => ( + ))}
diff --git a/components/main/NewsCarouselMobile.tsx b/components/main/NewsCarouselMobile.tsx index 0ad8198d..b7b1e14c 100644 --- a/components/main/NewsCarouselMobile.tsx +++ b/components/main/NewsCarouselMobile.tsx @@ -5,8 +5,8 @@ import NewsCard from './NewsCard'; export default function NewsCarouselMobile({ news }: { news: MainNews[] }) { return (
- {news.map((news, idx) => ( - + {news.map((news) => ( + ))}
);