upd: notifikasi
Deskripsi: - update notifikasi push routing ketika di klik No Issues
This commit is contained in:
@@ -5,11 +5,13 @@ import Feather from '@expo/vector-icons/Feather';
|
||||
import { router } from "expo-router";
|
||||
import { useEffect, useState } from "react";
|
||||
import { View } from "react-native";
|
||||
import { useSelector } from "react-redux";
|
||||
import { ButtonHeader } from "../buttonHeader";
|
||||
|
||||
export function HeaderRightHome() {
|
||||
const { decryptToken, token } = useAuthSession()
|
||||
const [notification, setNotification] = useState(0)
|
||||
const updateNotification = useSelector((state: any) => state.notificationUpdate)
|
||||
|
||||
async function handleData() {
|
||||
try {
|
||||
@@ -23,7 +25,7 @@ export function HeaderRightHome() {
|
||||
|
||||
useEffect(() => {
|
||||
handleData()
|
||||
}, []);
|
||||
}, [updateNotification]);
|
||||
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user