button-component #29
@ -68,7 +68,7 @@ export default function Button({
|
||||
sizeClasses[size],
|
||||
className,
|
||||
]
|
||||
.filter(Boolean)
|
||||
.filter(Boolean) // Filter out empty strings and undefined values so they won't pollute the class list
|
||||
.join(" ");
|
||||
|
||||
return (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user