refactor: simplify GoalStats component by removing unused props and updating SiteDashboardPage accordingly

This commit is contained in:
Usman Baig
2026-02-04 15:49:07 +01:00
parent c780d3a119
commit 5c3f6f8516
2 changed files with 2 additions and 4 deletions

View File

@@ -7,13 +7,11 @@ import type { GoalCountStat } from '@/lib/api/stats'
interface GoalStatsProps {
goalCounts: GoalCountStat[]
siteId: string
dateRange: { start: string; end: string }
}
const LIMIT = 10
export default function GoalStats({ goalCounts, siteId, dateRange }: GoalStatsProps) {
export default function GoalStats({ goalCounts }: GoalStatsProps) {
const list = (goalCounts || []).slice(0, LIMIT)
const hasData = list.length > 0