From ebe06e4972aa66848f04ce38516e451f8019efeb Mon Sep 17 00:00:00 2001 From: kartikbhtt7 Date: Sun, 15 Jun 2025 19:25:46 +0530 Subject: [PATCH 1/2] [bugfix]: add missing closing div tag --- .../contributors/ContributorCard.tsx | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/frontend/src/components/contributors/ContributorCard.tsx b/frontend/src/components/contributors/ContributorCard.tsx index c5d301c4..108f60b9 100644 --- a/frontend/src/components/contributors/ContributorCard.tsx +++ b/frontend/src/components/contributors/ContributorCard.tsx @@ -6,30 +6,24 @@ interface ContributorCardProps { name: string; avatar: string; role: string; - contributions: number; // Changed to number for consistency lastActive?: string; // Made optional for flexibility - } const ContributorCard: React.FC = ({ name, avatar, role, contributions, lastActive }) => { const [isExpanded, setIsExpanded] = useState(false); return ( - setIsExpanded(!isExpanded)} >
-
@@ -39,43 +33,39 @@ const ContributorCard: React.FC = ({ name, avatar, role, c
Contributions - {contributions} - +
+ {lastActive && (
Last Active {lastActive}
)} + {isExpanded && ( -