Chore/retire redux
This commit is contained in:
@@ -10,7 +10,6 @@ import labels from '../i18n/en/settings'
|
||||
import { getBleedingDaysSortedByDate } from '../db'
|
||||
import cycleModule from './cycle'
|
||||
import nothingChanged from '../db/db-unchanged'
|
||||
import store from '../store'
|
||||
|
||||
export default function setupNotifications(navigate, setDate) {
|
||||
Notification.configure({
|
||||
@@ -18,7 +17,7 @@ export default function setupNotifications(navigate, setDate) {
|
||||
// https://github.com/zo0r/react-native-push-notification/issues/966#issuecomment-479069106
|
||||
if (notification.data?.id === '1' || notification.id === '1') {
|
||||
const todayDate = LocalDate.now().toString()
|
||||
store.dispatch(setDate(todayDate))
|
||||
setDate(todayDate)
|
||||
navigate('TemperatureEditView')
|
||||
} else {
|
||||
navigate('Home')
|
||||
|
||||
Reference in New Issue
Block a user