Reduce line lengths
This commit is contained in:
@@ -115,7 +115,9 @@ export default class CycleChart extends Component {
|
||||
fill={styles.mucusIconShades[cycleDay.mucus.value]}
|
||||
/> : null}
|
||||
|
||||
{y ? this.drawDotAndLines(y, cycleDay.temperature.exclude, index) : null}
|
||||
{y ?
|
||||
this.drawDotAndLines(y, cycleDay.temperature.exclude, index)
|
||||
: null}
|
||||
</G>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ export default class DayView extends Component {
|
||||
cycleDayNumber: getCycleDayNumber(this.cycleDay.date),
|
||||
}
|
||||
|
||||
this.setStateWithCurrentCycleDayNumber = (function (DayViewComponent) {
|
||||
this.setStateWithCycleDayNumber = (function (DayViewComponent) {
|
||||
return function () {
|
||||
DayViewComponent.setState({
|
||||
cycleDayNumber: getCycleDayNumber(DayViewComponent.cycleDay.date)
|
||||
@@ -37,11 +37,11 @@ export default class DayView extends Component {
|
||||
}
|
||||
})(this)
|
||||
|
||||
bleedingDaysSortedByDate.addListener(this.setStateWithCurrentCycleDayNumber)
|
||||
bleedingDaysSortedByDate.addListener(this.setStateWithCycleDayNumber)
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
bleedingDaysSortedByDate.removeListener(this.setStateWithCurrentCycleDayNumber)
|
||||
bleedingDaysSortedByDate.removeListener(this.setStateWithCycleDayNumber)
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user