This commit is contained in:
wayanrivan
2025-05-10 19:47:44 +07:00
parent e09e86bae3
commit 9e7c7fe4de

View File

@ -19,7 +19,7 @@ const Card = ({ title, total, growth, surplus, icon }: CardDataProduct) => {
<div className="flex justify-between"> <div className="flex justify-between">
<div className="flex flex-col w-full"> <div className="flex flex-col w-full">
<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.toFixed(2)}</span>
<span <span
className={`text-sm font-semibold mt-2 flex items-center gap-1 ${growth === 0 ? 'text-primary' : surplus ? 'text-green-500' : 'text-red-500' className={`text-sm font-semibold mt-2 flex items-center gap-1 ${growth === 0 ? 'text-primary' : surplus ? 'text-green-500' : 'text-red-500'
}`} }`}