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