use enter from i18n instead of hard-coded string
- issue: 127 - by: sg
This commit is contained in:
@@ -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 {
|
|||||||
<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 {
|
|||||||
} 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 {
|
|||||||
<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 {
|
|||||||
<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 })
|
||||||
|
|||||||
Reference in New Issue
Block a user