From 6f78e46ee6215e35c357b5dc010283f2e6f5c76f Mon Sep 17 00:00:00 2001 From: c00b3r Date: Thu, 19 Jun 2025 12:23:32 +0500 Subject: [PATCH] feat: enhance ClientsPage UI with client details and improved layout --- src/pages/ClientsPage.tsx | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/src/pages/ClientsPage.tsx b/src/pages/ClientsPage.tsx index cfb62bc..e876d25 100644 --- a/src/pages/ClientsPage.tsx +++ b/src/pages/ClientsPage.tsx @@ -10,6 +10,7 @@ import { User } from "../types/User"; import { Client } from "../types/Client"; import { useDebounce } from "@uidotdev/usehooks"; import pluralize from "../utils/pluralize"; +import ChevronRightIcon from "../components/icons/ChevronRightIcon"; function ClientsPage() { const [limit, setLimit] = useState(10); @@ -95,15 +96,29 @@ function ClientsPage() { -
+
{isLoading ? (
) : clients?.length ? ( - clients?.map(({ name }) => ( -
-

{name}

+ clients?.map(({ name, email, phone }) => ( +
+
+
+

{name}

+
+

{phone}

+

{email ? "• " + email : ""}

+
+
+
+ +
+
)) ) : ( @@ -118,7 +133,7 @@ function ClientsPage() {
)}
- {!!clients?.length && clients?.length === 0 && ( + {!!clients?.length && clients?.length !== 0 && (