Skip to content

Commit c49a872

Browse files
committed
[#101] ♻️ clsx to twmerge to guarantee class merge
1 parent 09cf473 commit c49a872

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/common/chip/Chip.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import clsx from 'clsx'
1+
import { twMergeEx } from '@/lib/twMerge'
22

33
type ChipProps = {
44
label: string
@@ -21,6 +21,6 @@ const styleByLabel: Record<string, string> = {
2121

2222
export const Chip = ({ label, className = '' }: ChipProps): JSX.Element => {
2323
const labelStyle = styleByLabel[label] || ''
24-
const chipStyle = clsx(baseStyle, labelStyle, className)
24+
const chipStyle = twMergeEx(baseStyle, labelStyle, className)
2525
return <span className={chipStyle}>{label}</span>
2626
}

0 commit comments

Comments
 (0)