From 1574a784f4114102278437a6d7e7eacc81f9ef66 Mon Sep 17 00:00:00 2001 From: basssy Date: Thu, 10 Oct 2024 15:31:22 +0900 Subject: [PATCH] =?UTF-8?q?QCAST=20=EB=A9=94=EC=9D=B8=20dayjs=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/main/MainContents.jsx | 36 +++++++++++++++++----------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/src/components/main/MainContents.jsx b/src/components/main/MainContents.jsx index ee9d1ab4..ba9a8d77 100644 --- a/src/components/main/MainContents.jsx +++ b/src/components/main/MainContents.jsx @@ -112,26 +112,34 @@ export default function MainContents({ objectList, businessCharger, businessChar
-
{dayjs(recentNoticeList[0]?.regDt).format('YYYY.MM.DD')}
-
{recentNoticeList[0]?.title}
-
{recentNoticeList[0]?.contents}
+ {recentNoticeList.length > 0 ? ( + <> +
{dayjs(recentNoticeList[0]?.regDt).format('YYYY.MM.DD')}
+
{recentNoticeList[0]?.title}
+
{recentNoticeList[0]?.contents}
+ + ) : null}
    - {recentFaqList.map((row, index) => { - return ( -
  • -
    -
    FAQ {row.noticeNo}
    -
    {row.title}
    -
    {dayjs(row.regDt).format('YYYY.MM.DD')}
    -
    -
  • - ) - })} + {recentFaqList.length > 0 ? ( + <> + {recentFaqList.map((row) => { + return ( +
  • +
    +
    FAQ {row.noticeNo}
    +
    {row.title}
    +
    {dayjs(row.regDt).format('YYYY.MM.DD')}
    +
    +
  • + ) + })} + + ) : null}