Small fixes in views
This commit is contained in:
parent
977d4bcbc9
commit
6ed968a8c5
|
@ -22,7 +22,7 @@ const IconCard = props => {
|
|||
<Text style={{ color: 'white', fontSize: props.fontSize, textAlign: "center" }}> {props.value}</Text>
|
||||
</View>
|
||||
<View style={{ alignItems: 'center', justifyContent: 'center', paddingLeft: 20 }}>
|
||||
<IconClass style={{ color: 'white', fontSize: 40 }} name={props.iconName} />
|
||||
<IconClass style={{ color: 'white', fontSize: 30 }} name={props.iconName} />
|
||||
<Text style={{ color: 'white', marginTop: 5 }}> {props.label}</Text>
|
||||
</View>
|
||||
</View>
|
||||
|
|
|
@ -208,6 +208,6 @@ export default class SwimTrackerWebsocketConnection {
|
|||
}
|
||||
|
||||
_onError = (ev) => {
|
||||
console.log("Websocket error", ev);
|
||||
console.log("Websocket error", ev, ev.error, ev.message);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue