From 1ad22eadf96453032829237232db727df1071b6d Mon Sep 17 00:00:00 2001 From: nimod7890 Date: Thu, 22 Aug 2024 11:45:56 +0900 Subject: [PATCH 01/10] =?UTF-8?q?perf:=20container=20=EB=86=92=EC=9D=B4=20?= =?UTF-8?q?=EA=B3=A0=EC=A0=95=ED=95=B4=20=EB=A0=88=EC=9D=B4=EC=95=84?= =?UTF-8?q?=EC=9B=83=20=EB=B3=80=EA=B2=BD=20=ED=94=BC=ED=95=98=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/eventSteps/ContentsContainer.tsx | 2 +- .../components/home/eventSteps/EventStep.tsx | 2 +- .../src/components/home/fastestQuiz/index.tsx | 2 +- .../src/components/layout/LayoutFallback.tsx | 7 +------ .../src/components/layout/footer/index.tsx | 2 +- packages/user/src/pages/HomePage.tsx | 18 ++++++++++-------- packages/user/src/routes/router.tsx | 4 ++-- 7 files changed, 17 insertions(+), 20 deletions(-) diff --git a/packages/user/src/components/home/eventSteps/ContentsContainer.tsx b/packages/user/src/components/home/eventSteps/ContentsContainer.tsx index 404fc122..c61ae290 100644 --- a/packages/user/src/components/home/eventSteps/ContentsContainer.tsx +++ b/packages/user/src/components/home/eventSteps/ContentsContainer.tsx @@ -12,7 +12,7 @@ export default function ContentsContainer({ const contents = Children.toArray(children); return ( -
+
{contents.map((content, index) => ( // eslint-disable-next-line react/no-array-index-key diff --git a/packages/user/src/components/home/eventSteps/EventStep.tsx b/packages/user/src/components/home/eventSteps/EventStep.tsx index b25a9dd6..da7c7bbb 100644 --- a/packages/user/src/components/home/eventSteps/EventStep.tsx +++ b/packages/user/src/components/home/eventSteps/EventStep.tsx @@ -8,7 +8,7 @@ export default function EventStep({ step, title, children }: PropsWithChildren +

{stepLabel}

{title}

{children} diff --git a/packages/user/src/components/home/fastestQuiz/index.tsx b/packages/user/src/components/home/fastestQuiz/index.tsx index 5c5fe65d..33ed4c9e 100644 --- a/packages/user/src/components/home/fastestQuiz/index.tsx +++ b/packages/user/src/components/home/fastestQuiz/index.tsx @@ -6,7 +6,7 @@ import TopSection from './TopSection.tsx'; /** 선착순 퀴즈 설명 섹션 */ export default function FastestQuiz() { return ( -
+
diff --git a/packages/user/src/components/layout/LayoutFallback.tsx b/packages/user/src/components/layout/LayoutFallback.tsx index 84f282d4..c253127a 100644 --- a/packages/user/src/components/layout/LayoutFallback.tsx +++ b/packages/user/src/components/layout/LayoutFallback.tsx @@ -1,10 +1,5 @@ -import DeferredWrapper from 'src/components/common/DeferredWrapper.tsx'; import PendingContainer from 'src/components/common/PendingContainer.tsx'; export default function LayoutFallback() { - return ( - - - - ); + return ; } diff --git a/packages/user/src/components/layout/footer/index.tsx b/packages/user/src/components/layout/footer/index.tsx index ba3cf9c6..df6c1635 100644 --- a/packages/user/src/components/layout/footer/index.tsx +++ b/packages/user/src/components/layout/footer/index.tsx @@ -4,7 +4,7 @@ import WebLinks from './WebLinks.tsx'; export default function Footer() { return ( -