refactor: remove counter property from CardReport and dashboard data for simplification

This commit is contained in:
Ardeman
2025-03-15 19:45:14 +08:00
parent fe38a63f1c
commit 00bb1a46dc
3 changed files with 2 additions and 11 deletions
-2
View File
@@ -17,12 +17,10 @@ export const HISTORY = [
title: 'Total Content Biasa',
amount: 2890,
icon: GraphIcon,
counter: [2190, 700],
},
{
title: 'Total Content Premium',
amount: 274,
icon: DoctorIcon,
counter: [211, 54],
},
]
+1 -2
View File
@@ -34,13 +34,12 @@ export const DashboardPage = () => {
</div>
<div className="mt-5 grid grid-cols-1 gap-6 sm:grid-cols-3 sm:grid-rows-2">
{HISTORY.map(({ title, amount, icon, counter }, index) => (
{HISTORY.map(({ title, amount, icon }, index) => (
<CardReport
key={index}
title={title}
amount={amount}
icon={icon}
counter={counter}
/>
))}
<div className="max-h-[300px] sm:col-span-2 sm:col-start-2 sm:row-span-2 sm:row-start-1">