chore: build admin
Frontend Admin - EAS Build / build (push) Failing after 12m33s

This commit is contained in:
2026-06-20 15:56:27 +02:00
parent 9ec83e3987
commit 26c0c169a3
4 changed files with 59 additions and 2 deletions
+15
View File
@@ -857,6 +857,7 @@ export interface Category {
name: string;
color: string;
is_coming_soon: boolean;
position: number;
created_at: string;
}
@@ -922,6 +923,20 @@ export const deleteCategoryAdmin = async (
}
};
export const reorderCategoriesAdmin = async (
ids: number[],
): Promise<{ success: boolean; error?: string }> => {
try {
await apiClient.put(`${V2}/admin/protected/categories/reorder`, { ids });
return { success: true };
} catch (error: any) {
return {
success: false,
error: error.response?.data?.error || "Erreur",
};
}
};
// ============================================
// PARAMÈTRES GLOBAUX
// ============================================