From eb7da996a7c2d617d276f296cac07a6fd5648664 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 27 Oct 2024 12:03:14 +0000 Subject: ui: Redesign the settings page and move it to its own layout --- .../components/dashboard/settings/UserDetails.tsx | 33 ---------------------- 1 file changed, 33 deletions(-) delete mode 100644 apps/web/components/dashboard/settings/UserDetails.tsx (limited to 'apps/web/components/dashboard/settings/UserDetails.tsx') diff --git a/apps/web/components/dashboard/settings/UserDetails.tsx b/apps/web/components/dashboard/settings/UserDetails.tsx deleted file mode 100644 index 471a6e09..00000000 --- a/apps/web/components/dashboard/settings/UserDetails.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import { Input } from "@/components/ui/input"; -import { api } from "@/server/api/client"; - -export default async function UserDetails() { - const whoami = await api.users.whoami(); - - const details = [ - { - label: "Name", - value: whoami.name ?? undefined, - }, - { - label: "Email", - value: whoami.email ?? undefined, - }, - ]; - - return ( -
-
- Basic Details -
-
- {details.map(({ label, value }) => ( -
-
{label}
- -
- ))} -
-
- ); -} -- cgit v1.2.3-70-g09d2