chore: fix notif

This commit is contained in:
2026-03-02 20:46:07 +01:00
parent 0085a39537
commit d299601667
10 changed files with 348 additions and 576 deletions
@@ -18,7 +18,6 @@ import { useAuth } from "../auth/AuthContext";
import { useTheme } from "../context/ThemeContext";
import { logoutUser } from "../api/api";
import type { ClientNotification } from "../api/api";
import { removePushTokenFromBackend } from "../services/pushNotifications";
import { fontSize, spacing, borderRadius } from "../theme";
import Toast from "../components/ui/Toast";
import type { ClientTabParamList, ClientStackParamList } from "./types";
@@ -58,7 +57,6 @@ function ClientTabs() {
markAllRead,
toast,
clearToast,
pushToken,
navigateToOrder,
clearNavigateToOrder,
} = useNotifications();
@@ -76,7 +74,6 @@ function ClientTabs() {
}, [navigateToOrder, navigation, clearNavigateToOrder]);
const handleLogout = async () => {
try { await removePushTokenFromBackend(); } catch { /* silencieux */ }
await logoutUser();
await logout();
};