Rename showView callback

This commit is contained in:
Julia Friesel
2018-06-14 14:49:45 +02:00
parent 5041a45576
commit be0b9ba09e
4 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -15,7 +15,7 @@ export default class DayView extends Component {
constructor(props) {
super(props)
this.cycleDay = props.cycleDay
this.bringIntoView = props.bringIntoView
this.showView = props.bringIntoView
bleedingDaysSortedByDate.addListener(setStateWithCurrentCycleDayNumber.bind(this))
}
@@ -46,11 +46,11 @@ export default class DayView extends Component {
<Text style={styles.welcome}>{bleedingLabel}</Text>
<Text style={styles.welcome}>{temperatureLabel}</Text>
<Button
onPress={() => this.bringIntoView('bleedingEditView')}
onPress={() => this.showView('bleedingEditView')}
title="Edit bleeding">
</Button>
<Button
onPress={() => this.bringIntoView('temperatureEditView')}
onPress={() => this.showView('temperatureEditView')}
title="Edit temperature">
</Button>
</View >