From 6d88f2bbc0ccdd2be8b10bac9c1cf831a150922f Mon Sep 17 00:00:00 2001 From: Stefanie Grewenig Date: Sat, 12 Jan 2019 15:59:16 +0100 Subject: [PATCH] use enter from i18n instead of hard-coded string - issue: 127 - by: sg --- components/cycle-day/symptoms/note.js | 3 ++- components/cycle-day/symptoms/pain.js | 3 ++- components/cycle-day/symptoms/temperature.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/cycle-day/symptoms/note.js b/components/cycle-day/symptoms/note.js index d43843d..155a573 100644 --- a/components/cycle-day/symptoms/note.js +++ b/components/cycle-day/symptoms/note.js @@ -10,6 +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' export default class Note extends Component { constructor(props) { @@ -33,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 1a25394..744cefd 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 } 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/temperature.js b/components/cycle-day/symptoms/temperature.js index 32aeb0f..a38e51a 100644 --- a/components/cycle-day/symptoms/temperature.js +++ b/components/cycle-day/symptoms/temperature.js @@ -142,7 +142,7 @@ export default class Temp extends Component { { this.setState({ note: val })