Re-add delete all button

This commit is contained in:
Julia Friesel
2018-07-23 12:59:40 +02:00
parent f52401d05d
commit 201a0d0ae1
3 changed files with 46 additions and 20 deletions
+7 -1
View File
@@ -7,7 +7,7 @@ import {
import { LocalDate } from 'js-joda'
import styles from '../styles/index'
import cycleModule from '../lib/cycle'
import { getOrCreateCycleDay, bleedingDaysSortedByDate, fillWithDummyData } from '../db'
import { getOrCreateCycleDay, bleedingDaysSortedByDate, fillWithDummyData, deleteAll } from '../db'
const getCycleDayNumber = cycleModule().getCycleDayNumber
@@ -73,6 +73,12 @@ export default class Home extends Component {
title="fill with example data">
</Button>
</View>
<View style={styles.homeButton}>
<Button
onPress={() => deleteAll()}
title="delete everything">
</Button>
</View>
</View>
</View>
)