Skip to content

Commit

Permalink
Merge pull request #4581 from g3n35i5/master
Browse files Browse the repository at this point in the history
Fixing theming documentation for custom icons
  • Loading branch information
fzaninotto committed Mar 25, 2020
2 parents 5a58bfe + 1441ca0 commit 518a710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Theming.md
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ const MyCustomIcon = () => {
)
};

const MyUserMenu = props => (<UserMenu {...props} icon={MyCustomIcon} />);
const MyUserMenu = props => (<UserMenu {...props} icon={<MyCustomIcon />} />);

const MyAppBar = props => <AppBar {...props} userMenu={<MyUserMenu />} />;
```
Expand Down

0 comments on commit 518a710

Please sign in to comment.