From a192c66c393514e28a05214300ba1562c8e076dc Mon Sep 17 00:00:00 2001 From: Daseul Kim Date: Tue, 8 Oct 2024 18:15:33 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20QInput,=20QSelect=20=EC=BB=B4?= =?UTF-8?q?=ED=8F=AC=EB=84=8C=ED=8A=B8=20=EB=82=B4=20div=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/input/QInput.jsx | 48 +++++++++++------------- src/components/common/select/QSelect.jsx | 32 ++++++---------- 2 files changed, 34 insertions(+), 46 deletions(-) diff --git a/src/components/common/input/QInput.jsx b/src/components/common/input/QInput.jsx index aea2d66e..39b8be08 100644 --- a/src/components/common/input/QInput.jsx +++ b/src/components/common/input/QInput.jsx @@ -41,32 +41,28 @@ export default function QInput({ type, readOnly = false, options = [], value, on ) return ( -
-
-
- {type === 'text' ? ( -
- -
- ) : type === 'radio' || type === 'checkbox' ? ( -
- {options?.map((option) => ( -
- handleChange(e, option.value)} - /> - -
- ))} -
- ) : null} + <> + {type === 'text' ? ( +
+
-
-
+ ) : type === 'radio' || type === 'checkbox' ? ( +
+ {options?.map((option) => ( +
+ handleChange(e, option.value)} + /> + +
+ ))} +
+ ) : null} + ) } diff --git a/src/components/common/select/QSelect.jsx b/src/components/common/select/QSelect.jsx index ba89ef04..acf0ac6b 100644 --- a/src/components/common/select/QSelect.jsx +++ b/src/components/common/select/QSelect.jsx @@ -18,25 +18,17 @@ export default function QSelect({ placeholder, options, disabled = false, dark = ) return ( -
-
-
-
- -
-
-
-
+ ) }