I have a material-ui button that is wrapped inside a react-router-dom Link. When the button is clicked it changes routes to the appropriate path, but the onClick event attached