Produce horizontal grid once, not for every column

This commit is contained in:
Julia Friesel
2018-08-13 15:20:42 +02:00
parent cd1e689aae
commit 2d221c4060
4 changed files with 14 additions and 12 deletions
+1 -2
View File
@@ -8,7 +8,6 @@ import config from './config'
import { getOrCreateCycleDay } from '../../db'
import cycleModule from '../../lib/cycle'
import setUpFertilityStatusFunc from './nfp-lines'
import { horizontalGrid } from './y-axis'
const getCycleDayNumber = cycleModule().getCycleDayNumber
const label = styles.column.label
@@ -69,7 +68,7 @@ export default class DayColumn extends Component {
columnElements.push(mucusIcon)
}
columnElements.push(cycleDayLabel, dateLabel, horizontalGrid)
columnElements.push(cycleDayLabel, dateLabel)
if(nfpLineInfo.drawFhmLine) {
const fhmLine = (<View