Add explainer to note

This commit is contained in:
Julia Friesel
2018-09-01 22:19:05 +02:00
parent cffa42ed1c
commit f6c6c9ef26
3 changed files with 14 additions and 6 deletions
+6 -2
View File
@@ -8,6 +8,8 @@ import {
import styles from '../../../styles'
import { saveSymptom } from '../../../db'
import ActionButtonFooter from './action-button-footer'
import SymptomSection from './symptom-section'
import { noteExplainer } from '../labels/labels'
export default class Note extends Component {
constructor(props) {
@@ -25,7 +27,9 @@ export default class Note extends Component {
return (
<View style={{ flex: 1 }}>
<ScrollView style={styles.page}>
<View style={styles.symptomViewRow}>
<SymptomSection
explainer={noteExplainer}
>
<TextInput
autoFocus={!this.state.currentValue}
multiline={true}
@@ -35,7 +39,7 @@ export default class Note extends Component {
}}
value={this.state.currentValue}
/>
</View>
</SymptomSection>
</ScrollView>
<ActionButtonFooter
symptom='note'