From 9eae7337559a822ae7240767ffb534721d5b04aa Mon Sep 17 00:00:00 2001 From: Ebube Date: Mon, 4 Mar 2024 17:34:11 +0100 Subject: [PATCH] changed to square brackets and reduced font --- src/components/FamilyAcc/FamilyTable.jsx | 33 +++++++++++++++++------- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/src/components/FamilyAcc/FamilyTable.jsx b/src/components/FamilyAcc/FamilyTable.jsx index c9b17a1..8888c3e 100644 --- a/src/components/FamilyAcc/FamilyTable.jsx +++ b/src/components/FamilyAcc/FamilyTable.jsx @@ -19,7 +19,7 @@ export default function FamilyTable({ familyList, loader, popUpHandler, - imageServer + imageServer, }) { const navigate = useNavigate(); const [currentPage, setCurrentPage] = useState(0); @@ -56,14 +56,18 @@ export default function FamilyTable({ enable_traking, profile_picture, imageServer, - username + username, }) => { // Check for valid dates const addedDate = added ? added.split(" ")[0] : "N/A"; const loginDate = last_login ? formatDateString(last_login) : "N/A"; const key = `family-${family_uid}`; // Assign a unique key - const image = localStorage.getItem('session_token') ? `${imageServer}${localStorage.getItem('session_token')}/family/${family_uid}` : '' - + const image = localStorage.getItem("session_token") + ? `${imageServer}${localStorage.getItem( + "session_token" + )}/family/${family_uid}` + : ""; + const trackingStatus = enable_traking === "0" ? "Stopped" @@ -81,14 +85,19 @@ export default function FamilyTable({
{`Avatar
-

- {`${firstname} ${lastname} (${username})`} +

+ {`${firstname} ${lastname}`}{" "} + {`[${username}]`}

Added: {addedDate} @@ -137,7 +146,7 @@ export default function FamilyTable({ task_count, family_uid, banner, - image + image, }) } type="button" @@ -187,7 +196,13 @@ export default function FamilyTable({ {currentFamilyList?.map((familyMember, index) => { - return ; + return ( + + ); })}