feat(dashboard): integrate CreateWorkspaceForm into HomePage

This commit is contained in:
ngc2207 2025-02-03 12:14:54 +08:00
parent c77876fee8
commit 468143ae0f

View File

@ -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>
);
}