From 3c1682cec32feee6af6db01a6399e22f3b45203f Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Sun, 2 Aug 2026 14:58:07 +0500 Subject: [PATCH] /profile dont look like i can edit them anymore --- app/(dashboard)/profile/page.tsx | 84 +++++++++++++++----------------- 1 file changed, 39 insertions(+), 45 deletions(-) diff --git a/app/(dashboard)/profile/page.tsx b/app/(dashboard)/profile/page.tsx index 67df1d9..bc0ff7c 100644 --- a/app/(dashboard)/profile/page.tsx +++ b/app/(dashboard)/profile/page.tsx @@ -3,7 +3,6 @@ import { getServerSession } from "next-auth"; import { authOptions } from "@/app/auth"; import ClientErrorMessage from "@/components/client-error-message"; import { Badge } from "@/components/ui/badge"; -import { FloatingLabelInput } from "@/components/ui/floating-label"; import { getProfileById } from "@/queries/users"; import { tryCatch } from "@/utils/tryCatch"; @@ -24,58 +23,34 @@ export default async function Profile() { {verifiedStatus(profile?.verified ?? false)} -
-
- +
+ - - + - - - - -
-
+ + + + + {/* */} @@ -83,6 +58,25 @@ export default async function Profile() { ); } +function ReadOnlyField({ + label, + value, +}: { + label: string; + value?: string | null; +}) { + return ( +
+
+ {label} +
+
+ {value?.trim() ? value : "—"} +
+
+ ); +} + function verifiedStatus(status: boolean) { switch (status) { case true: