Skip to content
Snippets Groups Projects
Commit e2b9d4b4 authored by Julia Friesel's avatar Julia Friesel
Browse files

Fix symptom headers

parent 559aa684
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ import Chart from './components/chart/chart'
import Settings from './components/settings'
import Stats from './components/stats'
import styles from './styles'
import {headerTitles as titles} from './components/labels'
// this is until react native fixes this bugg, see
// https://github.com/facebook/react-native/issues/18868#issuecomment-382671739
......@@ -53,7 +54,7 @@ export default class App extends Component {
return (
<View style={styles.menuOnBottom}>
{this.state.currentPage != 'CycleDay' && <Header title={this.state.currentPage} />}
{this.state.currentPage != 'CycleDay' && <Header title={titles[this.state.currentPage]} />}
{React.createElement(page, {
navigate: this.navigate.bind(this),
......
......@@ -35,7 +35,6 @@ export default class Bleeding extends Component {
return (
<View style={styles.menuOnBottom}>
<View>
<Text style={styles.symptomDayView}>Bleeding</Text>
<View style={styles.radioButtonRow}>
<RadioForm
radio_props={bleedingRadioProps}
......
......@@ -51,7 +51,6 @@ export default class Cervix extends Component {
return (
<View style={styles.menuOnBottom}>
<View>
<Text style={styles.symptomDayView}>Cervix</Text>
<Text style={styles.symptomDayView}>Opening</Text>
<View style={styles.radioButtonRow}>
<RadioForm
......
......@@ -30,7 +30,6 @@ export default class Desire extends Component {
return (
<View style={styles.menuOnBottom}>
<View>
<Text style={styles.symptomDayView}>Desire</Text>
<View style={styles.radioButtonRow}>
<RadioForm
radio_props={desireRadioProps}
......
......@@ -49,7 +49,6 @@ export default class Mucus extends Component {
return (
<View style={styles.menuOnBottom}>
<View>
<Text style={styles.symptomDayView}>Mucus</Text>
<Text style={styles.symptomDayView}>Feeling</Text>
<View style={styles.radioButtonRow}>
<RadioForm
......
......@@ -25,7 +25,6 @@ export default class Temp extends Component {
return (
<View style={styles.menuOnBottom}>
<View style={styles.symptomViewRow}>
<Text style={styles.symptomDayView}>Note</Text>
<TextInput
multiline={true}
placeholder="Enter"
......
......@@ -33,7 +33,6 @@ export default class Sex extends Component {
return (
<View style={styles.menuOnBottom}>
<View>
<Text style={styles.symptomDayView}>SEX</Text>
<View style={styles.symptomViewRowInline}>
<Text style={styles.symptomDayView}>{activityLabels.solo}</Text>
<CheckBox
......
......@@ -30,4 +30,19 @@ export const settings = {
message: 'Data successfully imported'
}
}
}
export const headerTitles = {
Home: 'Home',
Calendar: 'Calendar',
Chart: 'Chart',
Stats: 'Statistics',
Settings: 'Settings',
BleedingEditView: 'Bleeding',
TemperatureEditView: 'Temperature',
MucusEditView: 'Mucus',
CervixEditView: 'Cervix',
NoteEditView: 'Note',
DesireEditView: 'Desire',
SexEditView: 'Sex'
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment