Skip to content
Snippets Groups Projects
Commit 08faf477 authored by Stefanie Grewenig's avatar Stefanie Grewenig
Browse files

move hard coded headers from sex into cycle day and shared labels i18n

- issue: 127
- by: sg
parent 201fb5e2
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ import { ...@@ -7,6 +7,7 @@ import {
import styles from '../../../styles' import styles from '../../../styles'
import { saveSymptom } from '../../../db' import { saveSymptom } from '../../../db'
import { sex as sexLabels, contraceptives as cLabels } from '../../../i18n/en/cycle-day' import { sex as sexLabels, contraceptives as cLabels } from '../../../i18n/en/cycle-day'
import { shared } from '../../../i18n/en/labels'
import ActionButtonFooter from './action-button-footer' import ActionButtonFooter from './action-button-footer'
import SelectBoxGroup from '../select-box-group' import SelectBoxGroup from '../select-box-group'
import SymptomSection from './symptom-section' import SymptomSection from './symptom-section'
...@@ -38,7 +39,7 @@ export default class Sex extends Component { ...@@ -38,7 +39,7 @@ export default class Sex extends Component {
<View style={{ flex: 1 }}> <View style={{ flex: 1 }}>
<ScrollView style={styles.page}> <ScrollView style={styles.page}>
<SymptomSection <SymptomSection
header="Activity" header={sexLabels.header}
explainer={sexLabels.explainer} explainer={sexLabels.explainer}
> >
<SelectBoxGroup <SelectBoxGroup
...@@ -48,7 +49,7 @@ export default class Sex extends Component { ...@@ -48,7 +49,7 @@ export default class Sex extends Component {
/> />
</SymptomSection> </SymptomSection>
<SymptomSection <SymptomSection
header="Contraceptives" header={cLabels.header}
explainer={cLabels.explainer} explainer={cLabels.explainer}
> >
<SelectBoxGroup <SelectBoxGroup
...@@ -62,7 +63,7 @@ export default class Sex extends Component { ...@@ -62,7 +63,7 @@ export default class Sex extends Component {
<TextInput <TextInput
autoFocus={this.state.focusTextArea} autoFocus={this.state.focusTextArea}
multiline={true} multiline={true}
placeholder="Enter" placeholder={shared.enter}
value={this.state.note} value={this.state.note}
onChangeText={(val) => { onChangeText={(val) => {
this.setState({ note: val }) this.setState({ note: val })
......
...@@ -50,6 +50,7 @@ export const sex = { ...@@ -50,6 +50,7 @@ export const sex = {
solo: 'Solo', solo: 'Solo',
partner: 'Partner', partner: 'Partner',
}, },
header: "Activity",
explainer: 'Were you sexually active today?', explainer: 'Were you sexually active today?',
} }
...@@ -65,6 +66,7 @@ export const contraceptives = { ...@@ -65,6 +66,7 @@ export const contraceptives = {
none: 'None', none: 'None',
other: 'Other', other: 'Other',
}, },
header: "Contraceptives",
explainer: 'Did you use contraceptives?' explainer: 'Did you use contraceptives?'
} }
......
...@@ -16,7 +16,8 @@ export const shared = { ...@@ -16,7 +16,8 @@ export const shared = {
cycleDayWithLinebreak: 'Cycle\nday', cycleDayWithLinebreak: 'Cycle\nday',
loading: 'Loading ...', loading: 'Loading ...',
more: 'more', more: 'more',
less: 'less' less: 'less',
enter: 'Enter'
} }
export const headerTitles = { export const headerTitles = {
......
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