Skip to content

Commit 08984b2

Browse files
committed
fix(Icon): Add fill default value.
1 parent 5e86fd2 commit 08984b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/Icon/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default class Icons extends React.Component<IconsProps> {
2828
const {
2929
name,
3030
size,
31-
fill,
31+
fill = '#000000',
3232
stroke,
3333
xml,
3434
paths,
@@ -47,7 +47,7 @@ export default class Icons extends React.Component<IconsProps> {
4747
}
4848
return (
4949
<Svg
50-
fill={fill || color}
50+
fill={color || fill}
5151
stroke={stroke}
5252
height={size}
5353
width={size}

0 commit comments

Comments
 (0)