From 618230601e7772ea865122b375c88b8cde2a4a3f Mon Sep 17 00:00:00 2001 From: Paul Bienkowski Date: Tue, 30 Nov 2021 19:55:51 +0100 Subject: [PATCH] chore: Format code --- frontend/src/App.js | 42 ++++++++++++++++++++++++++++++------------ 1 file changed, 30 insertions(+), 12 deletions(-) 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...'}