Appbar: fix the warning about passing an unknown props.

master
Tom Hacohen 6 years ago
parent 4d386f5a0a
commit 87c777ac10

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

Loading…
Cancel
Save