From 56e4c86c7fe9e208c7df7addefe3c05cc7f9de0e Mon Sep 17 00:00:00 2001 From: pramod mahajan Date: Tue, 19 Aug 2025 11:19:12 +0530 Subject: [PATCH] handle empty field showing --- src/components/Tenant/EditProfile.jsx | 2 +- src/components/Tenant/Profile.jsx | 19 +++++++++++++------ src/pages/Tenant/TenantDetails.jsx | 2 +- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/components/Tenant/EditProfile.jsx b/src/components/Tenant/EditProfile.jsx index e2a28d07..76ea0355 100644 --- a/src/components/Tenant/EditProfile.jsx +++ b/src/components/Tenant/EditProfile.jsx @@ -73,7 +73,7 @@ const EditProfile = ({ TenantId,onClose }) => {
- + {errors.firstName &&
{errors.firstName.message}
}
diff --git a/src/components/Tenant/Profile.jsx b/src/components/Tenant/Profile.jsx index 2c37812c..df7976cd 100644 --- a/src/components/Tenant/Profile.jsx +++ b/src/components/Tenant/Profile.jsx @@ -4,6 +4,7 @@ import EditProfile from "./EditProfile"; import GlobalModel from "../common/GlobalModel"; import { useTenantContext } from "../../pages/Tenant/TenantPage"; import { useTenantDetailsContext } from "../../pages/Tenant/TenantDetails"; +import IconButton from "../common/IconButton"; const Profile = ({ data }) => { const {setEditTenant} = useTenantDetailsContext() @@ -15,12 +16,16 @@ const Profile = ({ data }) => {
- Preview + />):( )}

{data.name}

@@ -67,18 +72,20 @@ const Profile = ({ data }) => { {data.contactNumber}
-
- + {data.billingAddress && ( +
+ Address: {data.billingAddress}
+ )}
Organization
- + Industry: {data?.industry?.name}
@@ -96,7 +103,7 @@ const Profile = ({ data }) => { {data?.organizationSize}
- + On-Boarding Date: {formatUTCToLocalTime(data?.onBoardingDate)} diff --git a/src/pages/Tenant/TenantDetails.jsx b/src/pages/Tenant/TenantDetails.jsx index d78f7dc8..07e54b88 100644 --- a/src/pages/Tenant/TenantDetails.jsx +++ b/src/pages/Tenant/TenantDetails.jsx @@ -77,7 +77,7 @@ const TenantDetails = () => {