From 9b310dacef01080845c6c9e01f4888ba8ce04f0b Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Thu, 29 Jan 2026 01:00:23 -0800 Subject: [PATCH] Remove events section from share page overview Share page overview should look the same as normal app overview Co-Authored-By: Claude Opus 4.5 --- .../websites/[websiteId]/WebsitePanels.tsx | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/src/app/(main)/websites/[websiteId]/WebsitePanels.tsx b/src/app/(main)/websites/[websiteId]/WebsitePanels.tsx index a91d562e..4a666f10 100644 --- a/src/app/(main)/websites/[websiteId]/WebsitePanels.tsx +++ b/src/app/(main)/websites/[websiteId]/WebsitePanels.tsx @@ -1,15 +1,13 @@ import { Grid, Heading, Row, Tab, TabList, TabPanel, Tabs } from '@umami/react-zen'; import { GridRow } from '@/components/common/GridRow'; import { Panel } from '@/components/common/Panel'; -import { useMessages, useNavigation } from '@/components/hooks'; -import { EventsChart } from '@/components/metrics/EventsChart'; +import { useMessages } from '@/components/hooks'; import { MetricsTable } from '@/components/metrics/MetricsTable'; import { WeeklyTraffic } from '@/components/metrics/WeeklyTraffic'; import { WorldMap } from '@/components/metrics/WorldMap'; export function WebsitePanels({ websiteId }: { websiteId: string }) { const { formatMessage, labels } = useMessages(); - const { pathname } = useNavigation(); const tableProps = { websiteId, limit: 10, @@ -18,7 +16,6 @@ export function WebsitePanels({ websiteId }: { websiteId: string }) { metric: formatMessage(labels.visitors), }; const rowProps = { minHeight: '570px' }; - const isSharePage = pathname.includes('/share/'); return ( @@ -116,25 +113,6 @@ export function WebsitePanels({ websiteId }: { websiteId: string }) { - {isSharePage && ( - - - {formatMessage(labels.events)} - - - - - - - - )} ); }