Skip to content

Commit 4d1e00d

Browse files
committed
Update profile page
1 parent 5e5f0b5 commit 4d1e00d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

app/(main)/profile/page.tsx

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1+
import { ProfileForm } from "@/components/form/profile-form";
2+
import { currentUser } from "@/lib/auth";
13
import { Metadata } from "next";
24

35
export const metadata: Metadata = {
46
title: "Profile",
57
};
68

7-
export default function ProfilePage() {
8-
return <div>ProfilePage</div>;
9+
export default async function ProfilePage() {
10+
const user = await currentUser();
11+
if (!user) return;
12+
13+
return (
14+
<div className="grid grid-cols-7 gap-y-14">
15+
<h2 className="text-xl col-span-full col-start-4 font-semibold">Profile Settings</h2>
16+
<ProfileForm user={user} />
17+
</div>
18+
);
919
}

0 commit comments

Comments
 (0)