Clean up markup

This commit is contained in:
Julia Friesel
2019-05-19 19:00:05 +02:00
parent 69d2517dd2
commit 472d793627
8 changed files with 99 additions and 129 deletions
+12 -16
View File
@@ -1,9 +1,7 @@
import React from 'react'
import {
ScrollView,
TextInput,
View
} from 'react-native'
TextInput} from 'react-native'
import { pain as labels } from '../../../i18n/en/cycle-day'
import { shared as sharedLabels } from '../../../i18n/en/labels'
@@ -55,16 +53,15 @@ export default class Pain extends SymptomView {
renderContent() {
return (
<ScrollView style={styles.page}>
<View style={{ flexDirection: 'row' }}>
<SymptomSection
explainer={labels.explainer}
>
<SelectBoxGroup
labels={labels.categories}
onSelect={this.toggleState}
optionsState={this.state}
/>
{ this.state.other &&
<SymptomSection
explainer={labels.explainer}
>
<SelectBoxGroup
labels={labels.categories}
onSelect={this.toggleState}
optionsState={this.state}
/>
{ this.state.other &&
<TextInput
autoFocus={this.state.focusTextArea}
multiline={true}
@@ -74,9 +71,8 @@ export default class Pain extends SymptomView {
this.setState({note: val})
}}
/>
}
</SymptomSection>
</View>
}
</SymptomSection>
</ScrollView>)
}
}