Skip to content
Snippets Groups Projects
Commit 6d88f2bb authored by Stefanie Grewenig's avatar Stefanie Grewenig
Browse files

use enter from i18n instead of hard-coded string

- issue: 127
- by: sg
parent 08faf477
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ import { saveSymptom } from '../../../db' ...@@ -10,6 +10,7 @@ import { saveSymptom } from '../../../db'
import ActionButtonFooter from './action-button-footer' import ActionButtonFooter from './action-button-footer'
import SymptomSection from './symptom-section' import SymptomSection from './symptom-section'
import { noteExplainer } from '../../../i18n/en/cycle-day' import { noteExplainer } from '../../../i18n/en/cycle-day'
import { shared } from '../../../i18n/en/labels'
export default class Note extends Component { export default class Note extends Component {
constructor(props) { constructor(props) {
...@@ -33,7 +34,7 @@ export default class Note extends Component { ...@@ -33,7 +34,7 @@ export default class Note extends Component {
<TextInput <TextInput
autoFocus={!this.state.currentValue} autoFocus={!this.state.currentValue}
multiline={true} multiline={true}
placeholder="Enter" placeholder={shared.enter}
onChangeText={(val) => { onChangeText={(val) => {
this.setState({ currentValue: val }) this.setState({ currentValue: val })
}} }}
......
...@@ -6,6 +6,7 @@ import { ...@@ -6,6 +6,7 @@ import {
} from 'react-native' } from 'react-native'
import { saveSymptom } from '../../../db' import { saveSymptom } from '../../../db'
import { pain as labels } from '../../../i18n/en/cycle-day' import { pain as labels } from '../../../i18n/en/cycle-day'
import { shared } from '../../../i18n/en/labels'
import ActionButtonFooter from './action-button-footer' import ActionButtonFooter from './action-button-footer'
import SelectBoxGroup from '../select-box-group' import SelectBoxGroup from '../select-box-group'
import SymptomSection from './symptom-section' import SymptomSection from './symptom-section'
...@@ -49,7 +50,7 @@ export default class Pain extends Component { ...@@ -49,7 +50,7 @@ export default class Pain extends Component {
<TextInput <TextInput
autoFocus={this.state.focusTextArea} autoFocus={this.state.focusTextArea}
multiline={true} multiline={true}
placeholder="Enter" placeholder={shared.enter}
value={this.state.note} value={this.state.note}
onChangeText={(val) => { onChangeText={(val) => {
this.setState({note: val}) this.setState({note: val})
......
...@@ -142,7 +142,7 @@ export default class Temp extends Component { ...@@ -142,7 +142,7 @@ export default class Temp extends Component {
<TextInput <TextInput
multiline={true} multiline={true}
autoFocus={this.state.focusTextArea} autoFocus={this.state.focusTextArea}
placeholder="Enter" placeholder={shared.enter}
value={this.state.note} value={this.state.note}
onChangeText={(val) => { onChangeText={(val) => {
this.setState({ note: val }) this.setState({ note: val })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment