use enter from i18n instead of hard-coded string

- issue: 127
- by: sg
This commit is contained in:
Stefanie Grewenig
2019-01-12 15:59:16 +01:00
parent 08faf477a6
commit 6d88f2bbc0
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -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 {
<TextInput
autoFocus={!this.state.currentValue}
multiline={true}
placeholder="Enter"
placeholder={shared.enter}
onChangeText={(val) => {
this.setState({ currentValue: val })
}}
+2 -1
View File
@@ -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 {
<TextInput
autoFocus={this.state.focusTextArea}
multiline={true}
placeholder="Enter"
placeholder={shared.enter}
value={this.state.note}
onChangeText={(val) => {
this.setState({note: val})
+1 -1
View File
@@ -142,7 +142,7 @@ export default class Temp extends Component {
<TextInput
multiline={true}
autoFocus={this.state.focusTextArea}
placeholder="Enter"
placeholder={shared.enter}
value={this.state.note}
onChangeText={(val) => {
this.setState({ note: val })