From 090c0d1c3c1b6bf2f569eb4c9e1164523f048319 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sat, 7 Jun 2025 15:11:29 +0000 Subject: feat(web): Redesign the user settings page --- apps/web/components/settings/UserDetails.tsx | 71 +++++++++++++++++++--------- 1 file changed, 48 insertions(+), 23 deletions(-) (limited to 'apps/web/components/settings/UserDetails.tsx') diff --git a/apps/web/components/settings/UserDetails.tsx b/apps/web/components/settings/UserDetails.tsx index af6698ad..6135df47 100644 --- a/apps/web/components/settings/UserDetails.tsx +++ b/apps/web/components/settings/UserDetails.tsx @@ -1,35 +1,60 @@ import { Input } from "@/components/ui/input"; import { useTranslation } from "@/lib/i18n/server"; import { api } from "@/server/api/client"; +import { Mail, User } from "lucide-react"; + +import { Card, CardContent, CardHeader, CardTitle } from "../ui/card"; +import { Label } from "../ui/label"; export default async function UserDetails() { const { t } = await useTranslation(); const whoami = await api.users.whoami(); - const details = [ - { - label: t("common.name"), - value: whoami.name ?? undefined, - }, - { - label: t("common.email"), - value: whoami.email ?? undefined, - }, - ]; - return ( -
-
- {t("settings.info.basic_details")} -
-
- {details.map(({ label, value }) => ( -
-
{label}
- + + +
+
+ + + {t("settings.info.basic_details")} + +
+
+
+ +
+
+ + +
+
+ +
+ +
- ))} -
-
+
+ + ); } -- cgit v1.2.3-70-g09d2