diff --git a/components/cycle-day/symptoms/bleeding.js b/components/cycle-day/symptoms/bleeding.js index a17046b..3f7df98 100644 --- a/components/cycle-day/symptoms/bleeding.js +++ b/components/cycle-day/symptoms/bleeding.js @@ -6,7 +6,7 @@ import { } from 'react-native' import styles from '../../../styles' import { saveSymptom } from '../../../db' -import { bleeding as labels } from '../../../i18n/en/cycle-day' +import { bleeding } from '../../../i18n/en/cycle-day' import ActionButtonFooter from './action-button-footer' import SelectTabGroup from '../select-tab-group' import SymptomSection from './symptom-section' @@ -25,17 +25,17 @@ export default class Bleeding extends Component { render() { const bleedingRadioProps = [ - { label: labels[0], value: 0 }, - { label: labels[1], value: 1 }, - { label: labels[2], value: 2 }, - { label: labels[3], value: 3 }, + { label: bleeding.labels[0], value: 0 }, + { label: bleeding.labels[1], value: 1 }, + { label: bleeding.labels[2], value: 2 }, + { label: bleeding.labels[3], value: 3 }, ] return ( { this.setState({ currentValue: val }) }} diff --git a/components/cycle-day/symptoms/pain.js b/components/cycle-day/symptoms/pain.js index 1a25394..7a2d9e3 100644 --- a/components/cycle-day/symptoms/pain.js +++ b/components/cycle-day/symptoms/pain.js @@ -6,6 +6,7 @@ import { } from 'react-native' import { saveSymptom } from '../../../db' import { pain as labels } from '../../../i18n/en/cycle-day' +import { shared as sharedLabels } from '../../../i18n/en/labels' import ActionButtonFooter from './action-button-footer' import SelectBoxGroup from '../select-box-group' import SymptomSection from './symptom-section' @@ -49,7 +50,7 @@ export default class Pain extends Component { { this.setState({note: val}) diff --git a/components/cycle-day/symptoms/sex.js b/components/cycle-day/symptoms/sex.js index 6844985..0e5649b 100644 --- a/components/cycle-day/symptoms/sex.js +++ b/components/cycle-day/symptoms/sex.js @@ -6,7 +6,8 @@ import { } from 'react-native' import styles from '../../../styles' import { saveSymptom } from '../../../db' -import { sex as sexLabels, contraceptives as cLabels } from '../../../i18n/en/cycle-day' +import { sex as sexLabels, contraceptives as contraceptivesLabels } from '../../../i18n/en/cycle-day' +import { shared as sharedLabels } 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 { @@ -62,7 +63,7 @@ export default class Sex extends Component { { this.setState({ note: val }) diff --git a/components/cycle-day/symptoms/temperature.js b/components/cycle-day/symptoms/temperature.js index 32aeb0f..ae4634c 100644 --- a/components/cycle-day/symptoms/temperature.js +++ b/components/cycle-day/symptoms/temperature.js @@ -15,7 +15,7 @@ import styles from '../../../styles' import { LocalTime, ChronoUnit } from 'js-joda' import { temperature as labels } from '../../../i18n/en/cycle-day' import { scaleObservable } from '../../../local-storage' -import { shared } from '../../../i18n/en/labels' +import { shared as sharedLabels } from '../../../i18n/en/labels' import ActionButtonFooter from './action-button-footer' import config from '../../../config' import SymptomSection from './symptom-section' @@ -81,11 +81,11 @@ export default class Temp extends Component { if (warningMsg) { Alert.alert( - shared.warning, + sharedLabels.warning, warningMsg, [ - { text: shared.cancel }, - { text: shared.save, onPress: this.saveTemperature} + { text: sharedLabels.cancel }, + { text: sharedLabels.save, onPress: this.saveTemperature} ] ) } else { @@ -101,7 +101,7 @@ export default class Temp extends Component { @@ -112,7 +112,7 @@ export default class Temp extends Component { /> { this.setState({ note: val }) @@ -150,8 +150,8 @@ export default class Temp extends Component { />