diff --git a/frontend/src/App.js b/frontend/src/App.js index a2f8367..360c28a 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -28,16 +28,26 @@ 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 { - e.preventDefault() - navigate() - }} /> + return ( + { + e.preventDefault() + navigate() + }} + /> + ) } function DropdownItemForLink({navigate, ...props}) { - return { - e.preventDefault() - navigate() - }} /> + return ( + { + e.preventDefault() + navigate() + }} + /> + ) } const App = connect((state) => ({login: state.login}))(function App({login}) { @@ -56,9 +66,11 @@ const App = connect((state) => ({login: state.login}))(function App({login}) { OpenBikeSensor - {config?.obsMapSource && - Map - } + {config?.obsMapSource && ( + + Map + + )} Tracks @@ -179,7 +191,13 @@ const App = connect((state) => ({login: state.login}))(function App({login}) {
Info
- + {apiVersion ? `v${apiVersion}` : 'Fetching version...'}