Merge branch 'master'

This commit is contained in:
emelko
2018-08-31 00:36:19 +02:00
parent 5296a9c6ee
commit 3ff7dd7340
14 changed files with 1359 additions and 706 deletions
+10 -4
View File
@@ -8,7 +8,7 @@ import {
import { LocalDate, ChronoUnit } from 'js-joda'
import styles from '../styles/index'
import cycleModule from '../lib/cycle'
import { getOrCreateCycleDay, bleedingDaysSortedByDate, fillWithDummyData, deleteAll } from '../db'
import { getOrCreateCycleDay, bleedingDaysSortedByDate, fillWithMucusDummyData, fillWithCervixDummyData, deleteAll } from '../db'
import {bleedingPrediction as labels} from './labels'
const getCycleDayNumber = cycleModule().getCycleDayNumber
@@ -62,8 +62,14 @@ export default class Home extends Component {
</View>
<View style={styles.homeButton}>
<Button
onPress={() => fillWithDummyData()}
title="fill with example data">
onPress={() => fillWithMucusDummyData()}
title="fill with example data for mucus&temp">
</Button>
</View>
<View style={styles.homeButton}>
<Button
onPress={() => fillWithCervixDummyData()}
title="fill with example data for cervix&temp">
</Button>
</View>
<View style={styles.homeButton}>
@@ -107,4 +113,4 @@ function determinePredictionText() {
} else {
return labels.predictionStartedXDaysLeft(daysToEnd)
}
}
}