update
This commit is contained in:
@ -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'
|
||||||
}`}
|
}`}
|
||||||
|
|||||||
Reference in New Issue
Block a user