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,5 +1,5 @@
import { useState, useEffect, useCallback } from 'react';
import { getClientOrders, getOrderDetails } from '../../services/api';
import { getOrdersList, getOrderDetails } from '../../services/billing_api';
import { useVPC } from '../../services/useVPC';
import { Server, Globe, Folder, Trash2, Loader, Plus, AlertCircle } from 'lucide-react';
@@ -25,7 +25,7 @@ export default function Services() {
const fetchServices = useCallback(async () => {
try {
const data = await getClientOrders();
const data = await getOrdersList();
if (data.list && data.list.length > 0) {
const detailedServices = await Promise.all(data.list.map(async (order) => {
let hDetails = null;