refactor: event trends chart on /insights to use InsightsBookingService (#22741)

* refactor: event trends chart on /insights to use InsightsBookingService

* extract service instantiation

* remove unused code

* rename from eventsTimeline to eventTrends

* clean up

---------

Co-authored-by: Anik Dhabal Babu <[email protected]>
This commit is contained in:
Eunjae LeeandAnik Dhabal Babu authored and GitHub committed 2025-07-25 15:58:41 +00:00
1 parent e98024b08e
commit e6a0a0fc69
6 files changed
+203 -233

No files matched your search

+2 -2
View File
@@ -10,7 +10,7 @@ import {
import {
AverageEventDurationChart,
BookingKPICards,
BookingStatusLineChart,
EventTrendsChart,
HighestNoShowHostTable,
HighestRatedMembersTable,
BookingsByHourChart,
@@ -70,7 +70,7 @@ function InsightsPageContent() {
<div className="my-4 space-y-4">
<BookingKPICards />
<BookingStatusLineChart />
<EventTrendsChart />
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-4">
<div className="sm:col-span-2">