Replace apiRequest with clientFetch across app

Refactored all API calls to use the new clientFetch utility instead of apiRequest in dashboard pages, modal components, and profit analytics service. This improves consistency and aligns with updated API handling patterns.
This commit is contained in:
g
2025-12-11 19:52:43 +00:00
parent adb01009eb
commit fd5440c4da
7 changed files with 42 additions and 25 deletions

View File

@@ -20,7 +20,7 @@ import type { ProductModalProps, ProductData } from "@/lib/types";
import { toast } from "sonner";
import type React from "react";
import { Plus } from "lucide-react";
import { apiRequest } from "@/lib/api";
import { clientFetch } from "@/lib/api";
import { Switch } from "@/components/ui/switch";
type CategorySelectProps = {