mirror of
https://gitlab.massbug.com/massbug/judge4c.git
synced 2025-07-04 10:24:13 +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 { getCurrent } from "@/features/auth/actions";
|
||||
import { CreateWorkspaceForm } from "@/features/workspaces/components/create-workspace-form";
|
||||
|
||||
export default async function HomePage() {
|
||||
const user = await getCurrent();
|
||||
@ -7,8 +8,8 @@ export default async function HomePage() {
|
||||
if (!user) redirect("/sign-in");
|
||||
|
||||
return (
|
||||
<div>
|
||||
This is a home page
|
||||
<div className="h-full p-4">
|
||||
<CreateWorkspaceForm />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user