We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e5f0b5 commit 4d1e00dCopy full SHA for 4d1e00d
app/(main)/profile/page.tsx
@@ -1,9 +1,19 @@
1
+import { ProfileForm } from "@/components/form/profile-form";
2
+import { currentUser } from "@/lib/auth";
3
import { Metadata } from "next";
4
5
export const metadata: Metadata = {
6
title: "Profile",
7
};
8
-export default function ProfilePage() {
- 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
+ );
19
}
0 commit comments