From 9789275be71e6859aeb6d87500163a037152082f Mon Sep 17 00:00:00 2001 From: Xor290 Date: Sat, 3 Oct 2026 19:58:38 +0200 Subject: [PATCH] chore: build --- mobile/src/api/client.ts | 2 +- mobile/src/context/CartContext.tsx | 2 -- mobile/src/context/NotificationContext.tsx | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) 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);