Appbar: fix the warning about passing an unknown props.

master
Tom Hacohen 2018-11-13 10:28:58 +00:00
parent 4d386f5a0a
commit 87c777ac10
1 changed files with 2 additions and 1 deletions

View File

@ -124,6 +124,7 @@ const AppBarWitHistory = withRouter(
staticContext,
toggleDrawerIcon,
history,
iconElementRight,
...props
} = this.props;
return (
@ -144,7 +145,7 @@ const AppBarWitHistory = withRouter(
</div>
<div style={{ marginRight: -12 }}>
{this.props.iconElementRight}
{iconElementRight}
</div>
</Toolbar>
</AppBar>