Skip to content

Commit

Permalink
refactor: label, description 옵션 타입 수정 (#ATR-603)
Browse files Browse the repository at this point in the history
  • Loading branch information
LC-02s committed Aug 28, 2024
1 parent ac07a87 commit ebe7ecb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface CheckboxProps
React.InputHTMLAttributes<HTMLInputElement>,
HTMLInputElement
> {
label?: React.ReactNode | string
label?: React.ReactNode
color?: keyof CheckboxVariants['color']
round?: keyof CheckboxVariants['round']
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const meta: Meta<typeof Select> = {
description: '셀렉트 박스의 label을 지정합니다.',
control: 'text',
table: {
type: { summary: 'ReactNode | string' },
type: { summary: 'ReactNode' },
defaultValue: { summary: 'undefined' },
},
},
Expand All @@ -92,7 +92,7 @@ const meta: Meta<typeof Select> = {
description: '셀렉트 박스의 설명(하단 텍스트)을 지정합니다.',
control: 'text',
table: {
type: { summary: 'ReactNode | string' },
type: { summary: 'ReactNode' },
defaultValue: { summary: 'undefined' },
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export interface SelectContainerProps<T extends string>
round?: keyof SelectVariants['round']
withBackground?: boolean
mobile?: boolean
label?: React.ReactNode | string
description?: React.ReactNode | string
label?: React.ReactNode
description?: React.ReactNode
}

export interface SelectProps<T extends string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const meta: Meta<typeof TextInput> = {
description: '인풋의 label을 지정합니다.',
control: 'text',
table: {
type: { summary: 'ReactNode | string' },
type: { summary: 'ReactNode' },
defaultValue: { summary: 'undefined' },
},
},
Expand All @@ -84,7 +84,7 @@ const meta: Meta<typeof TextInput> = {
description: '인풋의 설명(하단 텍스트)을 지정합니다.',
control: 'text',
table: {
type: { summary: 'ReactNode | string' },
type: { summary: 'ReactNode' },
defaultValue: { summary: 'undefined' },
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ interface TextProps
size?: keyof TextInputVariant['size']
round?: keyof TextInputVariant['round']
withBackground?: boolean
label?: React.ReactNode | string
description?: React.ReactNode | string
label?: React.ReactNode
description?: React.ReactNode
}

const TextInput = React.forwardRef<HTMLInputElement, TextProps>(
Expand Down

0 comments on commit ebe7ecb

Please sign in to comment.