From 7ec247e4c8687f76e1533f4440a23d6f778ceff7 Mon Sep 17 00:00:00 2001 From: YI Na-yeon <2n.ayeon.yi@gmail.com> Date: Fri, 5 Jul 2024 13:34:45 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20id=20not=20match=20=EC=98=A4=EB=A5=98?= =?UTF-8?q?=20=EC=88=98=EC=A0=95=20#46?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/_components/TopBannerSection.tsx | 113 +++++++++++------------ src/common/Atoms/Form/Select.tsx | 14 ++- 2 files changed, 65 insertions(+), 62 deletions(-) diff --git a/src/app/_components/TopBannerSection.tsx b/src/app/_components/TopBannerSection.tsx index 82a5536..9d937ba 100644 --- a/src/app/_components/TopBannerSection.tsx +++ b/src/app/_components/TopBannerSection.tsx @@ -5,63 +5,58 @@ import Button from "@/common/Atoms/Form/Button"; import { Container } from "@/common/Layout"; export default function TopBanner() { - return ( -
-
- - -

- 케밋에서 케미 터지는 스터디 장과 멤버들을 만나,
- 놀라운 성장을 경험하세요! -

-
-
-
-
-
- -
- -
- - -
-
-
-
- ); + return ( +
+
+ + +

+ 케밋에서 케미 터지는 스터디 장과 멤버들을 만나,
+ 놀라운 성장을 경험하세요! +

+
+
+
+
+
+ +
+ +
+ + +
+
+
+
+ ); } diff --git a/src/common/Atoms/Form/Select.tsx b/src/common/Atoms/Form/Select.tsx index db04b73..6bf961b 100644 --- a/src/common/Atoms/Form/Select.tsx +++ b/src/common/Atoms/Form/Select.tsx @@ -1,4 +1,5 @@ "use client"; +import { useId } from "react"; import SelectInput, { IndicatorsContainerProps, MultiValueProps, @@ -7,14 +8,18 @@ import CreatableSelect from "react-select/creatable"; const IndicatorsContainer = (_: IndicatorsContainerProps) => <>; -export default ({ +export default function ({ + id = "", styles = {}, isCreatable = false, unstyled = false, ...restProps -}) => - isCreatable ? ( +}) { + const uniqueId = useId(); + return isCreatable ? ( ) : ( ); +}