From 6ed968a8c5cac69e09371d1b3f666c779c2a048f Mon Sep 17 00:00:00 2001 From: Martin Bauer Date: Sat, 28 Oct 2023 14:07:27 +0200 Subject: [PATCH] Small fixes in views --- SwimTracker/components/IconCard.js | 2 +- .../data_processing/SwimTrackerWebsocketConnection.js | 2 +- SwimTracker/views/MainMenuView.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SwimTracker/components/IconCard.js b/SwimTracker/components/IconCard.js index 5dd7dd3..c20de42 100644 --- a/SwimTracker/components/IconCard.js +++ b/SwimTracker/components/IconCard.js @@ -22,7 +22,7 @@ const IconCard = props => { {props.value} - + {props.label} diff --git a/SwimTracker/data_processing/SwimTrackerWebsocketConnection.js b/SwimTracker/data_processing/SwimTrackerWebsocketConnection.js index b6ebe92..4e07820 100644 --- a/SwimTracker/data_processing/SwimTrackerWebsocketConnection.js +++ b/SwimTracker/data_processing/SwimTrackerWebsocketConnection.js @@ -208,6 +208,6 @@ export default class SwimTrackerWebsocketConnection { } _onError = (ev) => { - console.log("Websocket error", ev); + console.log("Websocket error", ev, ev.error, ev.message); } }; diff --git a/SwimTracker/views/MainMenuView.js b/SwimTracker/views/MainMenuView.js index 5ecf609..33fa8fc 100644 --- a/SwimTracker/views/MainMenuView.js +++ b/SwimTracker/views/MainMenuView.js @@ -113,7 +113,7 @@ const buttonGridStyles = StyleSheet.create({ }, button: { flex: 1, - margin: 20, + margin: 14, padding: 20, width: 120, height: 130, @@ -125,7 +125,7 @@ const buttonGridStyles = StyleSheet.create({ buttonText: { color: "rgba(255,255,255,1)", textAlign: "center", - fontSize: 16, + fontSize: 14, }, icon: { color: "rgba(255,255,255,1)", @@ -203,7 +203,7 @@ function MainMenuView(props) { } const onStartButtonPress = () => { - if (!props.connState !== ConnState.CONNECTED_RUNNING) { + if (props.connState !== ConnState.CONNECTED_RUNNING) { props.dispatch(startSession()); } props.navigation.navigate('Training')