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