move hard coded headers from sex into cycle day and shared labels i18n
- issue: 127 - by: sg
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
import styles from '../../../styles'
|
||||
import { saveSymptom } from '../../../db'
|
||||
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 SelectBoxGroup from '../select-box-group'
|
||||
import SymptomSection from './symptom-section'
|
||||
@@ -38,7 +39,7 @@ export default class Sex extends Component {
|
||||
<View style={{ flex: 1 }}>
|
||||
<ScrollView style={styles.page}>
|
||||
<SymptomSection
|
||||
header="Activity"
|
||||
header={sexLabels.header}
|
||||
explainer={sexLabels.explainer}
|
||||
>
|
||||
<SelectBoxGroup
|
||||
@@ -48,7 +49,7 @@ export default class Sex extends Component {
|
||||
/>
|
||||
</SymptomSection>
|
||||
<SymptomSection
|
||||
header="Contraceptives"
|
||||
header={cLabels.header}
|
||||
explainer={cLabels.explainer}
|
||||
>
|
||||
<SelectBoxGroup
|
||||
@@ -62,7 +63,7 @@ export default class Sex extends Component {
|
||||
<TextInput
|
||||
autoFocus={this.state.focusTextArea}
|
||||
multiline={true}
|
||||
placeholder="Enter"
|
||||
placeholder={shared.enter}
|
||||
value={this.state.note}
|
||||
onChangeText={(val) => {
|
||||
this.setState({ note: val })
|
||||
|
||||
@@ -50,6 +50,7 @@ export const sex = {
|
||||
solo: 'Solo',
|
||||
partner: 'Partner',
|
||||
},
|
||||
header: "Activity",
|
||||
explainer: 'Were you sexually active today?',
|
||||
}
|
||||
|
||||
@@ -65,6 +66,7 @@ export const contraceptives = {
|
||||
none: 'None',
|
||||
other: 'Other',
|
||||
},
|
||||
header: "Contraceptives",
|
||||
explainer: 'Did you use contraceptives?'
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -16,7 +16,8 @@ export const shared = {
|
||||
cycleDayWithLinebreak: 'Cycle\nday',
|
||||
loading: 'Loading ...',
|
||||
more: 'more',
|
||||
less: 'less'
|
||||
less: 'less',
|
||||
enter: 'Enter'
|
||||
}
|
||||
|
||||
export const headerTitles = {
|
||||
|
||||
Reference in New Issue
Block a user