feat: refactor dashboard and account pages to utilize new layout components, enhancing structure and loading states
This commit is contained in:
16
components/layout/loading-state.tsx
Normal file
16
components/layout/loading-state.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
"use client";
|
||||
|
||||
import { Sidebar } from "@/components/dashboard/sidebar";
|
||||
import { RefreshCw } from "lucide-react";
|
||||
|
||||
export function LoadingState() {
|
||||
return (
|
||||
<div className="flex h-screen">
|
||||
<Sidebar />
|
||||
<main className="flex-1 flex items-center justify-center">
|
||||
<RefreshCw className="w-8 h-8 animate-spin text-muted-foreground" />
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user