upd: notifikasi

Deskripsi:
- update notifikasi push routing ketika di klik

No Issues
This commit is contained in:
amel
2025-06-26 14:30:40 +08:00
parent 76c0ba0535
commit 32908e1362
6 changed files with 105 additions and 68 deletions

View File

@@ -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 (