From 9fe1940907be62974eeb728472be84e07e46c31b Mon Sep 17 00:00:00 2001 From: Stefanie Grewenig Date: Sat, 12 Jan 2019 16:29:31 +0100 Subject: [PATCH] postfix all i18n imports with 'labels' - issue: 127 - by: sg --- components/cycle-day/symptoms/note.js | 4 ++-- components/cycle-day/symptoms/pain.js | 4 ++-- components/cycle-day/symptoms/sex.js | 12 ++++++------ components/cycle-day/symptoms/temperature.js | 10 +++++----- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/components/cycle-day/symptoms/note.js b/components/cycle-day/symptoms/note.js index 155a573..491061b 100644 --- a/components/cycle-day/symptoms/note.js +++ b/components/cycle-day/symptoms/note.js @@ -10,7 +10,7 @@ import { saveSymptom } from '../../../db' import ActionButtonFooter from './action-button-footer' import SymptomSection from './symptom-section' import { noteExplainer } from '../../../i18n/en/cycle-day' -import { shared } from '../../../i18n/en/labels' +import { shared as sharedLabels } from '../../../i18n/en/labels' export default class Note extends Component { constructor(props) { @@ -34,7 +34,7 @@ export default class Note extends Component { { this.setState({ currentValue: val }) }} diff --git a/components/cycle-day/symptoms/pain.js b/components/cycle-day/symptoms/pain.js index 744cefd..7a2d9e3 100644 --- a/components/cycle-day/symptoms/pain.js +++ b/components/cycle-day/symptoms/pain.js @@ -6,7 +6,7 @@ import { } from 'react-native' import { saveSymptom } from '../../../db' import { pain as labels } from '../../../i18n/en/cycle-day' -import { shared } from '../../../i18n/en/labels' +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' @@ -50,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 df5d36f..0e5649b 100644 --- a/components/cycle-day/symptoms/sex.js +++ b/components/cycle-day/symptoms/sex.js @@ -6,8 +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 { shared } from '../../../i18n/en/labels' +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' @@ -49,11 +49,11 @@ export default class Sex extends Component { /> @@ -63,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 170df7d..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 { @@ -142,7 +142,7 @@ export default class Temp extends Component { { this.setState({ note: val })