chore: fix notif
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user