chore: fix ui bug

This commit is contained in:
2026-03-25 09:41:53 +01:00
parent 79c050d689
commit ac5ec11f54
4 changed files with 66 additions and 24 deletions
+14
View File
@@ -180,6 +180,20 @@ export const updateMyLocation = async (
}
};
export const getDeliveryNavLink = async (
deliveryId: number,
): Promise<{ success: boolean; waze_app?: string; error?: string }> => {
try {
const { data } = await apiClient.get(`${API}/deliveries/${deliveryId}/nav-link`);
return { success: true, waze_app: data.waze_app };
} catch (error: any) {
return {
success: false,
error: error.response?.data?.error || "Erreur réseau",
};
}
};
export const getMyLocation = async (): Promise<{
success: boolean;
latitude?: number;