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