slight cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user