Skip to content

Commit

Permalink
refactor(member): add label to Select component (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
gwansikk committed Mar 26, 2024
1 parent b71cbc5 commit 36ac803
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/member/src/components/common/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ const Select = ({
}: SelectProps) => {
return (
<div className={classNames('flex flex-col', className)}>
<label htmlFor={id} className="mb-1 ml-1 text-xs">
{label}
</label>
{label && (
<label htmlFor={id} className="mb-1 ml-1 text-xs">
{label}
</label>
)}
<select
id={id}
className="w-full h-full p-2 border rounded-md disabled:bg-gray-50"
Expand Down

0 comments on commit 36ac803

Please sign in to comment.