mirror of
https://gitlab.massbug.com/massbug/judge4c.git
synced 2025-07-04 10:04:17 +00:00
feat(dashboard): integrate CreateWorkspaceForm into HomePage
This commit is contained in:
parent
c77876fee8
commit
468143ae0f
@ -1,5 +1,6 @@
|
|||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
import { getCurrent } from "@/features/auth/actions";
|
import { getCurrent } from "@/features/auth/actions";
|
||||||
|
import { CreateWorkspaceForm } from "@/features/workspaces/components/create-workspace-form";
|
||||||
|
|
||||||
export default async function HomePage() {
|
export default async function HomePage() {
|
||||||
const user = await getCurrent();
|
const user = await getCurrent();
|
||||||
@ -7,8 +8,8 @@ export default async function HomePage() {
|
|||||||
if (!user) redirect("/sign-in");
|
if (!user) redirect("/sign-in");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className="h-full p-4">
|
||||||
This is a home page
|
<CreateWorkspaceForm />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user