Skip to content

Commit 20f5429

Browse files
change fallback style
Co-authored-by: Michaël De Boey <[email protected]>
1 parent af13a7f commit 20f5429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/IconButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const variants = {
77
};
88

99
function IconButton({ children, title, variant, onClick, className }) {
10-
const cssVariant = variants[variant] ?? variants['light'];
10+
const cssVariant = variants[variant] || variants['light'];
1111
return (
1212
<button
1313
className={[

0 commit comments

Comments
 (0)