From 43221dd2746539cab9de1a467d49334368554c3e Mon Sep 17 00:00:00 2001 From: Yashwin Date: Tue, 12 May 2026 17:36:48 +0530 Subject: [PATCH] refactor: simplify StatCard UI by removing background containers and applying icon colors directly --- src/pages/tenant/Tasks.tsx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/pages/tenant/Tasks.tsx b/src/pages/tenant/Tasks.tsx index 09096ab..5eb1345 100644 --- a/src/pages/tenant/Tasks.tsx +++ b/src/pages/tenant/Tasks.tsx @@ -27,11 +27,8 @@ const formatDate = (value?: string | null): string => { const StatCard = ({ icon: Icon, label, value, color, style }: { icon: any, label: string, value: number, color?: string, style?: React.CSSProperties }) => (
-
- +
+
{value}
@@ -215,25 +212,25 @@ const Tasks = (): ReactElement => { icon={Inbox} label="Pending Tasks" value={counts?.pending || 0} - style={{ backgroundColor: primaryColor }} + style={{ color: primaryColor }} />