diff --git a/frontend/src/App.js b/frontend/src/App.js index 5158b81..a2f8367 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -28,10 +28,16 @@ import api from 'api' // which is a workaround for an annoying warning that is somehow caused by the // and combination. function MenuItemForLink({navigate, ...props}) { - return + return { + e.preventDefault() + navigate() + }} /> } function DropdownItemForLink({navigate, ...props}) { - return + return { + e.preventDefault() + navigate() + }} /> } const App = connect((state) => ({login: state.login}))(function App({login}) {