slight cleanup

This commit is contained in:
g
2025-02-07 19:30:49 +00:00
parent 40635ae667
commit 8900bbcc76
11 changed files with 438 additions and 477 deletions

View File

@@ -1,6 +1,6 @@
import Dashboard from "@/components/kokonutui/dashboard";
import Content from "@/components/kokonutui/content";
import { fetchWithAuthorization } from "@/lib/server-utils"
import { fetchServer } from "@/lib/server-utils"
// ✅ Corrected Vendor Type
interface Vendor {
@@ -24,8 +24,8 @@ interface OrderStats {
export default async function DashboardPage() {
const [userResponse, orderStats] = await Promise.all([
fetchWithAuthorization<User>("/auth/me"),
fetchWithAuthorization<OrderStats>("/orders/stats"),
fetchServer<User>("/auth/me"),
fetchServer<OrderStats>("/orders/stats"),
]);
const vendor = userResponse.vendor;