From 1b11b24a4c0c780898b6b58cbec83589b04e062b Mon Sep 17 00:00:00 2001 From: tina Date: Wed, 26 Sep 2018 19:31:30 +0200 Subject: [PATCH] enables back button on symptom view --- components/app.js | 6 ++++++ components/cycle-day/symptoms/bleeding.js | 10 ---------- components/header.js | 4 ---- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/components/app.js b/components/app.js index 4cc978d..94472a1 100644 --- a/components/app.js +++ b/components/app.js @@ -60,6 +60,12 @@ export default class App extends Component {
} + {isSymptomView(this.state.currentPage) && +
} {React.createElement(page, { navigate: this.navigate, diff --git a/components/cycle-day/symptoms/bleeding.js b/components/cycle-day/symptoms/bleeding.js index 94125cf..3c88ec5 100644 --- a/components/cycle-day/symptoms/bleeding.js +++ b/components/cycle-day/symptoms/bleeding.js @@ -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 ( -
this.props.navigate('CycleDay', this.props.cycleDay)} - cycleDayNumber={this.props.cycleDayNumber} - date={this.props.cycleDay.date} - infoTitle={'Info here'} - infoText={'bla bla'} - /> @@ -45,9 +44,6 @@ export default class Header extends Component { {this.props.title} - - {formatDateForViewHeader(this.props.date)} -