Skip to content

Commit

Permalink
fix: ability to override default icons
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxuoz committed Apr 17, 2019
1 parent 724435a commit e0545b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Icon/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const Icon = ({ name, className, ...rest }: IconProps) => {

return (
<IconsConsumer>
{ ({ icons }) => {
const Glyph: any = glyphs[name] || icons[name];
{ ({ icons = {}}) => {
const Glyph: any = icons[name] || glyphs[name];

return (
<IconWrapperTag tagName="span" { ...rest }>
Expand Down

0 comments on commit e0545b5

Please sign in to comment.