Gather general cycle-related functions in cycle module

This commit is contained in:
Julia Friesel
2018-06-30 13:50:01 +02:00
parent 97b8452b45
commit 28b880a40c
8 changed files with 84 additions and 75 deletions
+2 -2
View File
@@ -3,14 +3,14 @@ import {
View,
Text
} from 'react-native'
import cycleDayModule from '../lib/get-cycle-day-number'
import cycleModule from '../lib/cycle'
import DayView from './cycle-day-overview'
import BleedingEditView from './bleeding'
import TemperatureEditView from './temperature'
import { formatDateForViewHeader } from '../labels/format'
import styles from '../styles/index'
const getCycleDayNumber = cycleDayModule()
const getCycleDayNumber = cycleModule().getCycleDayNumber
export default class Day extends Component {
constructor(props) {