score:1

Accepted answer

you should update

toolbar.proptypes = {
color: proptypes.string.isrequired,
showlogo: proptypes.string.isrequired,
history:proptypes.node
};

or

const {history} = this.props

update

history:proptypes.shape({push:proptypes.func})

score:2

setting the history proptype will help you get rid of the error:

toolbar.proptypes = {
  color: proptypes.string.isrequired,
  showlogo: proptypes.string.isrequired,
  history: proptypes.shape({
    push: proptypes.func.isrequired,
  }).isrequired,
};

Related Query

More Query from same tag