major changes in the layout and added most components
Some checks failed
checks-impure / test (pull_request) Successful in 27s
checks / test (pull_request) Failing after 2m18s

This commit is contained in:
sara-pervana
2023-11-21 23:46:32 +01:00
parent 1044ce3102
commit c53fdb7d86
18 changed files with 304 additions and 32 deletions

View File

@@ -1,31 +1,21 @@
"use client";
import { RecentActivity } from "@/components/dashboard/activity";
import { useAppState } from "@/components/hooks/useAppContext";
import { LoadingOverlay } from "@/components/join/loadingOverlay";
import Home from "./home/page";
export default function Dashboard() {
const { isLoading } = useAppState();
if (isLoading) {
return (
<div className="grid h-full place-items-center">
<div className="mt-8 w-full max-w-xl">
<LoadingOverlay
title="Clan Experience"
subtitle="Loading"
variant="circle"
/>
</div>
return isLoading ? (
<div className="grid h-full place-items-center">
<div className="mt-8 w-full max-w-xl">
<LoadingOverlay
title="Clan Experience"
subtitle="Loading"
variant="circle"
/>
</div>
);
} else {
return (
<div className="flex w-full">
<div className="grid w-full grid-flow-row grid-cols-3 gap-4">
<div className="row-span-2">
<RecentActivity />
</div>
</div>
</div>
);
}
</div>
) : (
<Home />
);
}