Skip to content

Commit

Permalink
refactor: text input 컴포넌트 required props 수정 (#ATR-603)
Browse files Browse the repository at this point in the history
  • Loading branch information
LC-02s committed Aug 22, 2024
1 parent c57742f commit 6bd15b1
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ interface TextProps
round?: keyof TextInputVariant['round']
withBackground?: boolean
label?: React.ReactNode | string
required?: boolean
description?: React.ReactNode | string
}

Expand All @@ -28,7 +27,6 @@ const TextInput = React.forwardRef<HTMLInputElement, TextProps>(
id,
type,
label,
required,
state,
size,
round,
Expand All @@ -53,7 +51,7 @@ const TextInput = React.forwardRef<HTMLInputElement, TextProps>(
{label && (
<label htmlFor={id}>
{label}
{required && <span>*</span>}
{props.required && <span>*</span>}
</label>
)}
<input ref={ref} id={id} type={type || 'text'} {...props} />
Expand Down

0 comments on commit 6bd15b1

Please sign in to comment.