Only show cycle day label when there is a cycle day number

This commit is contained in:
Julia Friesel
2018-06-14 14:02:39 +02:00
parent 166c69581b
commit 7dc78ff32c
+1 -1
View File
@@ -31,7 +31,7 @@ export default class Day extends Component {
return ( return (
<View style={styles.container}> <View style={styles.container}>
<Text style={styles.welcome}>{formatDateForViewHeader(this.cycleDay.date)}</Text> <Text style={styles.welcome}>{formatDateForViewHeader(this.cycleDay.date)}</Text>
<Text>Cycle day {getCycleDayNumber(this.cycleDay.date)}</Text> { this.cycleDayNumber && <Text>Cycle day {this.cycleDayNumber}</Text> }
{ {
{ dayView: <DayView cycleDay={this.cycleDay} bringIntoView={this.bringIntoView} />, { dayView: <DayView cycleDay={this.cycleDay} bringIntoView={this.bringIntoView} />,
bleedingEditView: <BleedingEditView cycleDay={this.cycleDay} bringIntoView={this.bringIntoView}/>, bleedingEditView: <BleedingEditView cycleDay={this.cycleDay} bringIntoView={this.bringIntoView}/>,