diff --git a/mobile/src/api/client.ts b/mobile/src/api/client.ts index a7478af8..d52169b2 100644 --- a/mobile/src/api/client.ts +++ b/mobile/src/api/client.ts @@ -2,7 +2,7 @@ import axios from "axios"; import { getToken, getAdminToken } from "../auth/tokenStorage"; export const API_BASE_URL = - process.env.EXPO_PUBLIC_API_URL ?? "https://uber-demo.club"; + process.env.EXPO_PUBLIC_API_URL ?? "https://mln-uber.club"; const apiClient = axios.create({ baseURL: API_BASE_URL, diff --git a/mobile/src/context/CartContext.tsx b/mobile/src/context/CartContext.tsx index 991a173f..6591b697 100644 --- a/mobile/src/context/CartContext.tsx +++ b/mobile/src/context/CartContext.tsx @@ -220,5 +220,3 @@ export function useCart() { if (!context) throw new Error("useCart must be used within a CartProvider"); return context; } - -// diff --git a/mobile/src/context/NotificationContext.tsx b/mobile/src/context/NotificationContext.tsx index e3f6e167..a9187ccc 100644 --- a/mobile/src/context/NotificationContext.tsx +++ b/mobile/src/context/NotificationContext.tsx @@ -128,6 +128,7 @@ export function NotificationProvider({ children }: { children: ReactNode }) { } }, []); + // Polling toutes les 15 secondes useEffect(() => { fetchNotifications(); const interval = setInterval(fetchNotifications, 15000);