From 746a572e55bdf0fcb442d4dc4f4dddb7031b525e Mon Sep 17 00:00:00 2001 From: designsoo Date: Tue, 13 Aug 2024 01:20:05 +0900 Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20isRequired=20prop=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Input.tsx | 6 ++---- src/components/InputField.tsx | 3 --- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/Input.tsx b/src/components/Input.tsx index 5953f9c..29f68b6 100644 --- a/src/components/Input.tsx +++ b/src/components/Input.tsx @@ -9,7 +9,6 @@ interface CustomInputProps { formMethod: UseFormReturn; placeholder: string; errorMessage?: string; - isRequired?: boolean; } type InputProps = Omit, keyof CustomInputProps> & @@ -21,7 +20,6 @@ const Input = ({ placeholder, formMethod, errorMessage = '', - isRequired = false, ...rest }: InputProps) => { const { @@ -48,7 +46,7 @@ const Input = ({ > ({ )} - {isRequired && errors[name] && {errorMessage}} + {errors[name] && {errorMessage}} ); }; diff --git a/src/components/InputField.tsx b/src/components/InputField.tsx index 5bddd38..ddacf39 100644 --- a/src/components/InputField.tsx +++ b/src/components/InputField.tsx @@ -10,7 +10,6 @@ interface CustomInputProps { formMethod: UseFormReturn; placeholder: string; errorMessage?: string; - isRequired?: boolean; } type InputFieldProps = Omit, keyof CustomInputProps> & @@ -23,7 +22,6 @@ const InputField = ({ placeholder, formMethod, errorMessage, - isRequired, ...rest }: InputFieldProps) => { return ( @@ -35,7 +33,6 @@ const InputField = ({ type={type} placeholder={placeholder} errorMessage={errorMessage} - isRequired={isRequired} {...rest} /> From 9158cc6c3d35940d2db89b5d2e109d156cbd5545 Mon Sep 17 00:00:00 2001 From: designsoo Date: Tue, 13 Aug 2024 01:20:34 +0900 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20version=200.5.5=20=EC=97=85?= =?UTF-8?q?=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 915ef75..c61c866 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "mingle-ui", "description": "mingle-design-system", "private": false, - "version": "0.5.2", + "version": "0.5.5", "type": "module", "license": "MIT", "files": [