enables back button on symptom view
This commit is contained in:
@@ -60,6 +60,12 @@ export default class App extends Component {
|
||||
<Header
|
||||
title={titles[this.state.currentPage]}
|
||||
/>}
|
||||
{isSymptomView(this.state.currentPage) &&
|
||||
<Header
|
||||
title={titles[this.state.currentPage]}
|
||||
isSymptomView={true}
|
||||
goBack={this.handleBackButtonPress}
|
||||
/>}
|
||||
|
||||
{React.createElement(page, {
|
||||
navigate: this.navigate,
|
||||
|
||||
@@ -10,7 +10,6 @@ import { bleeding as labels } from '../labels/labels'
|
||||
import ActionButtonFooter from './action-button-footer'
|
||||
import SelectTabGroup from '../select-tab-group'
|
||||
import SymptomSection from './symptom-section'
|
||||
import Header from '../../header'
|
||||
|
||||
export default class Bleeding extends Component {
|
||||
constructor(props) {
|
||||
@@ -32,15 +31,6 @@ export default class Bleeding extends Component {
|
||||
]
|
||||
return (
|
||||
<View style={{ flex: 1 }}>
|
||||
<Header
|
||||
title={'Bleeding'}
|
||||
isSymptomView={true}
|
||||
goBack={() => this.props.navigate('CycleDay', this.props.cycleDay)}
|
||||
cycleDayNumber={this.props.cycleDayNumber}
|
||||
date={this.props.cycleDay.date}
|
||||
infoTitle={'Info here'}
|
||||
infoText={'bla bla'}
|
||||
/>
|
||||
<ScrollView style={styles.page}>
|
||||
<SymptomSection
|
||||
header="Heaviness"
|
||||
|
||||
@@ -10,7 +10,6 @@ import { formatDateForViewHeader } from '../components/cycle-day/labels/format'
|
||||
|
||||
export default class Header extends Component {
|
||||
render() {
|
||||
console.log(this.props)
|
||||
return (
|
||||
this.props.isCycleDayOverView ?
|
||||
<View style={[styles.header, styles.headerCycleDay]}>
|
||||
@@ -45,9 +44,6 @@ export default class Header extends Component {
|
||||
<Text style={styles.dateHeader}>
|
||||
{this.props.title}
|
||||
</Text>
|
||||
<Text style={styles.cycleDayNumber} >
|
||||
{formatDateForViewHeader(this.props.date)}
|
||||
</Text>
|
||||
</View >
|
||||
<Icon
|
||||
name='information-outline'
|
||||
|
||||
Reference in New Issue
Block a user