tries to enable notifications for next period
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user