refactor: remove counter property from CardReport and dashboard data for simplification
This commit is contained in:
@@ -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],
|
||||
},
|
||||
]
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user