change api

This commit is contained in:
LathanDevers
2026-07-16 14:51:57 +02:00
parent 074e3ab195
commit 15213bba21
9 changed files with 403 additions and 24 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import { useState, useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
import { getClientOrders } from '../../services/api';
import { getOrdersList } from '../../services/billing_api';
import { AlertCircle, Loader, FileText, X } from 'lucide-react';
// Importation des composants
@@ -23,7 +23,7 @@ export default function Dashboard() {
const fetchInventory = async () => {
setIsLoading(true);
try {
const data = await getClientOrders();
const data = await getOrdersList();
if (data.list) {
// LE FILTRE CHIRURGICAL PAR PREFIXE