1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Update typing for new react-redux

This commit is contained in:
Zhiyuan Zheng
2022-04-30 23:47:52 +02:00
parent 546847fd9a
commit dc91f3edeb
20 changed files with 70 additions and 56 deletions

View File

@ -4,7 +4,6 @@ import { QueryKeyTimeline } from '@utils/queryHooks/timeline'
import { Instance } from '@utils/slices/instancesSlice'
import * as Notifications from 'expo-notifications'
import { useEffect } from 'react'
import { useDispatch } from 'react-redux'
import pushUseNavigate from './useNavigate'
export interface Params {
@ -12,8 +11,6 @@ export interface Params {
}
const pushUseRespond = ({ instances }: Params) => {
const dispatch = useDispatch()
return useEffect(() => {
const subscription = Notifications.addNotificationResponseReceivedListener(
({ notification }) => {