Reduce line lengths
This commit is contained in:
1 parent
310683c5f8
commit
c525812a0e
2 files changed
+6
-4
No files matched your search
@@ -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