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
+1 -7
View File
@@ -10,11 +10,10 @@ type CardReportProperty = {
properties: React.JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>,
) => JSX.Element
url?: string
counter?: number[]
}
export const CardReport = (properties: CardReportProperty) => {
const { title, amount, icon: Icon, counter, currency } = properties
const { title, amount, icon: Icon, currency } = properties
return (
<div className="rounded-xl bg-white px-4 py-6 shadow-sm">
<div className="flex items-center">
@@ -32,11 +31,6 @@ export const CardReport = (properties: CardReportProperty) => {
</p>
</div>
</div>
{counter?.length && (
<div className="flex items-center pt-2">
Pribadi: {counter[0]} | Perusahaan: {counter[1]}
</div>
)}
</div>
)
}