From 67d399e3d3205eb9281f790e999182fe35c38850 Mon Sep 17 00:00:00 2001 From: pramod mahajan Date: Tue, 9 Sep 2025 14:44:38 +0530 Subject: [PATCH] set proerly alignment for label and value --- src/components/Employee/EmpOverview.jsx | 204 ++++++++++++++---------- 1 file changed, 122 insertions(+), 82 deletions(-) diff --git a/src/components/Employee/EmpOverview.jsx b/src/components/Employee/EmpOverview.jsx index 6b396745..ae7b2f7e 100644 --- a/src/components/Employee/EmpOverview.jsx +++ b/src/components/Employee/EmpOverview.jsx @@ -9,80 +9,105 @@ const EmpOverview = ({ profile }) => {
- {/* About Heading */} About {/* Full Name */} -
- - +
+
+ Full Name - - : - +
+
:
+
{profile?.firstName || NA} {profile?.lastName || ""} - +
{/* Status */} -
- - +
+
+ Status - - : - Active +
+
:
+
Active
{/* Role */} -
- - +
+
+ Role - - : - {profile?.jobRole || NA} +
+
:
+
+ {profile?.jobRole || NA} +
{/* Gender */} -
- - +
+
+ Gender - - : - {profile?.gender || NA} +
+
:
+
+ {profile?.gender || NA} +
{/* Birth Date */} -
- - +
+
+ Birth Date - - : - - {profile?.birthDate - ? new Date(profile.birthDate).toLocaleDateString() - : NA} - +
+
:
+
+ {profile?.birthDate ? ( + new Date(profile.birthDate).toLocaleDateString() + ) : ( + NA + )} +
{/* Joining Date */} -
- - +
+
+ Joining Date - - : - - {profile?.joiningDate - ? new Date(profile.joiningDate).toLocaleDateString() - : NA} - +
+
:
+
+ {profile?.joiningDate ? ( + new Date(profile.joiningDate).toLocaleDateString() + ) : ( + NA + )} +
{/* Contacts Heading */} @@ -91,68 +116,83 @@ const EmpOverview = ({ profile }) => { {/* Contact Number */} -
- - +
+
+ Contact - - : - {profile?.phoneNumber || NA} +
+
:
+
+ {profile?.phoneNumber || NA} +
{/* Email */} -
- - +
+
+ Email - - : - +
+
:
+
{profile?.email ? ( {profile.email} ) : ( NA )} - +
- {/* Emergency Contact */} -
- - +
+
+ Emergency Contact - - : - +
+
:
+
{profile?.emergencyContactPerson || NA} - +
{/* Emergency Phone */} -
- - +
+
+ Emergency Phone - - : - +
+
:
+
{profile?.emergencyPhoneNumber || NA} - +
{/* Address */} -
- - +
+
+ Address - - : - +
+
:
+
{profile?.currentAddress || NA} - +
-