change layouts of cycle-day, edit symptoms screens and home
This commit is contained in:
+17
-10
@@ -29,16 +29,23 @@ export default class Day extends Component {
|
||||
render() {
|
||||
const cycleDayNumber = getCycleDayNumber(this.cycleDay.date)
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text style={styles.welcome}>{formatDateForViewHeader(this.cycleDay.date)}</Text>
|
||||
{ cycleDayNumber && <Text>Cycle day {cycleDayNumber}</Text> }
|
||||
{
|
||||
{ dayView: <DayView cycleDay={this.cycleDay} showView={this.showView} />,
|
||||
bleedingEditView: <BleedingEditView cycleDay={this.cycleDay} showView={this.showView}/>,
|
||||
temperatureEditView: <TemperatureEditView cycleDay={this.cycleDay} showView={this.showView}/>
|
||||
}[this.state.visibleComponent]
|
||||
}
|
||||
|
||||
<View style={{flex: 1, flexDirection: 'column', justifyContent: 'space-around'}}>
|
||||
<View style={{flex: 2, justifyContent: 'center', backgroundColor: 'steelblue'}}>
|
||||
<Text style={styles.dateHeader}>
|
||||
{formatDateForViewHeader(this.cycleDay.date)}
|
||||
</Text>
|
||||
</View >
|
||||
<View style={{flex: 1, justifyContent: 'center', backgroundColor: 'skyblue'}}>
|
||||
{ cycleDayNumber && <Text style={styles.cycleDayNumber} >Cycle day {cycleDayNumber}</Text> }
|
||||
</View >
|
||||
<View style={{flex: 8, justifyContent: 'center',}}>
|
||||
{
|
||||
{ dayView: <DayView cycleDay={this.cycleDay} showView={this.showView} />,
|
||||
bleedingEditView: <BleedingEditView cycleDay={this.cycleDay} showView={this.showView}/>,
|
||||
temperatureEditView: <TemperatureEditView cycleDay={this.cycleDay} showView={this.showView}/>
|
||||
}[this.state.visibleComponent]
|
||||
}
|
||||
</View >
|
||||
</View >
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user