feat: add Campaigns component and API integration for campaign statistics in SiteDashboardPage

This commit is contained in:
Usman Baig
2026-02-04 19:11:03 +01:00
parent 96b5de5997
commit d5ea1a793b
3 changed files with 194 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ import TechSpecs from '@/components/dashboard/TechSpecs'
import Chart from '@/components/dashboard/Chart'
import PerformanceStats from '@/components/dashboard/PerformanceStats'
import GoalStats from '@/components/dashboard/GoalStats'
import Campaigns from '@/components/dashboard/Campaigns'
export default function SiteDashboardPage() {
const { user } = useAuth()
@@ -377,6 +378,11 @@ export default function SiteDashboardPage() {
/>
</div>
{/* Campaigns Report */}
<div className="mb-8">
<Campaigns siteId={siteId} dateRange={dateRange} />
</div>
<div className="mb-8">
<GoalStats goalCounts={goalCounts} />
</div>