Skip to content

Commit

Permalink
Icon - remove redundant color prop (codesandbox#5082)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthkp committed Nov 9, 2020
1 parent 932d565 commit ed1aea9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/components/src/components/Icon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,14 @@ type IconProps = React.SVGAttributes<SVGElement> &
title?: string;
/** Size of the icon, the button is set to 26x26 */
size?: number;
/** icon color */
color?: string;
};

export const Icon: React.FC<IconProps> = ({
name = 'notFound',
size = 16,
color = 'inherit',
...props
}) => {
const SVG = icons[name];

return <SVG width={size} height={size} color={color} {...props} />;
return <SVG width={size} height={size} {...props} />;
};

0 comments on commit ed1aea9

Please sign in to comment.