update dashboard

This commit is contained in:
wayanrivan
2025-05-02 12:43:43 +07:00
parent e1ac959aff
commit 4b78ac5372

View File

@ -10,7 +10,7 @@ interface CardDataProduct {
icon: string; icon: string;
} }
const Card = ({ title, total, growth, surplus,icon }: CardDataProduct) => { const Card = ({ title, total, growth, surplus, icon }: CardDataProduct) => {
const { isRTL } = useLanguage(); const { isRTL } = useLanguage();
return ( return (
@ -21,12 +21,12 @@ const Card = ({ title, total, growth, surplus,icon }: CardDataProduct) => {
<span className="text-sm font-normal text-gray-600 mb-5">{title}</span> <span className="text-sm font-normal text-gray-600 mb-5">{title}</span>
<span className="text-3xl font-semibold text-gray-900 mb-0">{total}</span> <span className="text-3xl font-semibold text-gray-900 mb-0">{total}</span>
<span <span
className={`text-sm font-semibold mt-2 flex items-center gap-1 ${ className={`text-sm font-semibold mt-2 flex items-center gap-1 ${growth === 0 ? 'text-primary' : surplus ? 'text-green-500' : 'text-red-500'
surplus ? 'text-green-500' : 'text-red-500' }`}
}`}
> >
{surplus ? '▲' : '▼'} {growth} % From Last Week {growth === 0 ? '' : surplus ? '▲' : '▼'} {growth} % From Last Week
</span> </span>
</div> </div>
</div> </div>
</div> </div>