Add explainer to note
This commit is contained in:
@@ -70,3 +70,5 @@ export const temperature = {
|
|||||||
outOfAbsoluteRangeWarning: 'This temperature value is too high or low to be shown on the temperature chart.',
|
outOfAbsoluteRangeWarning: 'This temperature value is too high or low to be shown on the temperature chart.',
|
||||||
saveAnyway: 'Save anyway'
|
saveAnyway: 'Save anyway'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const noteExplainer = "Anything you want to add for the day?"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import { mucus as labels } from '../labels/labels'
|
|||||||
import computeSensiplanValue from '../../../lib/sensiplan-mucus'
|
import computeSensiplanValue from '../../../lib/sensiplan-mucus'
|
||||||
import ActionButtonFooter from './action-button-footer'
|
import ActionButtonFooter from './action-button-footer'
|
||||||
import SelectTabGroup from '../select-tab-group'
|
import SelectTabGroup from '../select-tab-group'
|
||||||
import SymptomSection from './symptom-section';
|
import SymptomSection from './symptom-section'
|
||||||
|
|
||||||
|
|
||||||
export default class Mucus extends Component {
|
export default class Mucus extends Component {
|
||||||
@@ -84,10 +84,12 @@ export default class Mucus extends Component {
|
|||||||
symptom='mucus'
|
symptom='mucus'
|
||||||
cycleDay={this.cycleDay}
|
cycleDay={this.cycleDay}
|
||||||
saveAction={() => {
|
saveAction={() => {
|
||||||
|
const feeling = this.state.feeling
|
||||||
|
const texture = this.state.texture
|
||||||
saveSymptom('mucus', this.cycleDay, {
|
saveSymptom('mucus', this.cycleDay, {
|
||||||
feeling: this.state.feeling,
|
feeling,
|
||||||
texture: this.state.texture,
|
texture,
|
||||||
value: computeSensiplanValue(this.state.feeling, this.state.texture),
|
value: computeSensiplanValue(feeling, texture),
|
||||||
exclude: this.state.exclude
|
exclude: this.state.exclude
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ import {
|
|||||||
import styles from '../../../styles'
|
import styles from '../../../styles'
|
||||||
import { saveSymptom } from '../../../db'
|
import { saveSymptom } from '../../../db'
|
||||||
import ActionButtonFooter from './action-button-footer'
|
import ActionButtonFooter from './action-button-footer'
|
||||||
|
import SymptomSection from './symptom-section'
|
||||||
|
import { noteExplainer } from '../labels/labels'
|
||||||
|
|
||||||
export default class Note extends Component {
|
export default class Note extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
@@ -25,7 +27,9 @@ export default class Note extends Component {
|
|||||||
return (
|
return (
|
||||||
<View style={{ flex: 1 }}>
|
<View style={{ flex: 1 }}>
|
||||||
<ScrollView style={styles.page}>
|
<ScrollView style={styles.page}>
|
||||||
<View style={styles.symptomViewRow}>
|
<SymptomSection
|
||||||
|
explainer={noteExplainer}
|
||||||
|
>
|
||||||
<TextInput
|
<TextInput
|
||||||
autoFocus={!this.state.currentValue}
|
autoFocus={!this.state.currentValue}
|
||||||
multiline={true}
|
multiline={true}
|
||||||
@@ -35,7 +39,7 @@ export default class Note extends Component {
|
|||||||
}}
|
}}
|
||||||
value={this.state.currentValue}
|
value={this.state.currentValue}
|
||||||
/>
|
/>
|
||||||
</View>
|
</SymptomSection>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
<ActionButtonFooter
|
<ActionButtonFooter
|
||||||
symptom='note'
|
symptom='note'
|
||||||
|
|||||||
Reference in New Issue
Block a user