File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/components/common/chip Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ type ChipProps = {
77}
88
99const baseStyle =
10- 'flex h-28 items-center justify-center rounded-4 bg-gray-200 px-6 text-body3 font-medium text-gray-500 '
10+ 'flex h-28 items-center justify-center rounded-4 px-6 text-body3 font-medium'
1111
1212const styleByLabel : Record < string , string > = {
1313 '모집 중' : 'bg-blue-100 text-blue-500' ,
@@ -20,8 +20,11 @@ const styleByLabel: Record<string, string> = {
2020 기타 : 'bg-orange-100 text-orange-500' ,
2121}
2222
23- export const Chip = ( { label, className = '' } : ChipProps ) : JSX . Element => {
23+ export const Chip = ( {
24+ label,
25+ className = 'bg-gray-200 text-gray-500' ,
26+ } : ChipProps ) : JSX . Element => {
2427 const labelStyle = styleByLabel [ label ] || ''
25- const chipStyle = twMerge ( baseStyle , clsx ( labelStyle ) , className )
28+ const chipStyle = clsx ( baseStyle , labelStyle , className )
2629 return < span className = { chipStyle } > { label } </ span >
2730}
You can’t perform that action at this time.
0 commit comments