diff --git a/frontend-admin/src/screens/admin/OrderDetailScreen.tsx b/frontend-admin/src/screens/admin/OrderDetailScreen.tsx index 68530c12..4595bee2 100644 --- a/frontend-admin/src/screens/admin/OrderDetailScreen.tsx +++ b/frontend-admin/src/screens/admin/OrderDetailScreen.tsx @@ -9,7 +9,11 @@ import { StatusBar, Alert, } from "react-native"; -import { useRoute, useNavigation, type RouteProp } from "@react-navigation/native"; +import { + useRoute, + useNavigation, + type RouteProp, +} from "@react-navigation/native"; import { Ionicons } from "@expo/vector-icons"; import MapView, { Marker, Polyline, PROVIDER_DEFAULT } from "react-native-maps"; import { spacing, fontSize, borderRadius } from "../../theme"; @@ -87,7 +91,9 @@ export default function OrderDetailScreen() { try { const res = await getCommandByID(orderId); setCommand(res.command); - } catch { /* ignore */ } + } catch { + /* ignore */ + } }, 20000); return () => clearInterval(interval); }, [orderId]); @@ -176,7 +182,10 @@ export default function OrderDetailScreen() { const handleNotifyClient = async () => { try { await notifyClientToDescend(orderId); - showSuccess("Notification envoyée", "Le client a été prévenu de descendre"); + showSuccess( + "Notification envoyée", + "Le client a été prévenu de descendre", + ); } catch (e: any) { showError("Erreur", e.message); } @@ -773,7 +782,7 @@ export default function OrderDetailScreen() { )} {!["approved", "cancelled"].includes(command.status) && (