tries to enable notifications for next period

This commit is contained in:
tina
2018-09-25 15:28:04 +02:00
parent ce5a8ce5a1
commit 80bec57f69
3 changed files with 34 additions and 6 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ export const settings = {
periodReminder: {
title: 'Next period reminder',
reminderText: 'Get a notification 3 days before your next period is likely to start.',
notification: 'your next period is likely to start in x days.'
notification: daysToEndOfPrediction => `Your next period is likely to start in 3 to ${daysToEndOfPrediction} days.`
},
passwordSettings: {
title: 'App password',
+2 -2
View File
@@ -14,7 +14,7 @@ import { settings as labels } from '../labels'
export default class PeriodReminderPicker extends Component {
constructor(props) {
super(props)
this.state = Object.assign({}, periodReminderObservable.value)
this.state = periodReminderObservable.value
}
render() {
@@ -31,7 +31,7 @@ export default class PeriodReminderPicker extends Component {
value={this.state.enabled}
onValueChange={switchOn => {
this.setState({ enabled: switchOn })
savePeriodReminder({enabled: true})
savePeriodReminder({enabled: switchOn})
}}
/>
</View>