From 4b78ac53726c80948d31b21108537a7376bedf6c Mon Sep 17 00:00:00 2001 From: wayanrivan Date: Fri, 2 May 2025 12:43:43 +0700 Subject: [PATCH] update dashboard --- src/pages/dashboards/home/blocks/Card.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/dashboards/home/blocks/Card.tsx b/src/pages/dashboards/home/blocks/Card.tsx index d2f065a..0665599 100644 --- a/src/pages/dashboards/home/blocks/Card.tsx +++ b/src/pages/dashboards/home/blocks/Card.tsx @@ -10,7 +10,7 @@ interface CardDataProduct { icon: string; } -const Card = ({ title, total, growth, surplus,icon }: CardDataProduct) => { +const Card = ({ title, total, growth, surplus, icon }: CardDataProduct) => { const { isRTL } = useLanguage(); return ( @@ -21,12 +21,12 @@ const Card = ({ title, total, growth, surplus,icon }: CardDataProduct) => { {title} {total} - {surplus ? '▲' : '▼'} {growth} % From Last Week + {growth === 0 ? '−' : surplus ? '▲' : '▼'} {growth} % From Last Week +