Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Fixed more pages.
Mike Cao3e4e338d1355
diff --git a/src/app/(main)/websites/[websiteId]/page.tsx b/src/app/(main)/websites/[websiteId]/page.tsxindex a19315b17..d7e6fcd0e 100644--- a/src/app/(main)/websites/[websiteId]/page.tsx+++ b/src/app/(main)/websites/[websiteId]/page.tsx@@ -1,3 +1,4 @@+'use client';import WebsiteDetails from './WebsiteDetails';export default function WebsitePage({ params: { websiteId } }) {diff --git a/src/app/(main)/websites/[websiteId]/realtime/WebsiteRealtimePage.tsx b/src/app/(main)/websites/[websiteId]/realtime/WebsiteRealtimePage.tsxnew file mode 100644index 000000000..7e5388127--- /dev/null+++ b/src/app/(main)/websites/[websiteId]/realtime/WebsiteRealtimePage.tsx@@ -0,0 +1,6 @@+'use client';+import Realtime from './Realtime';++export default function WebsiteRealtimePage({ websiteId }) {+ return <Realtime websiteId={websiteId} />;+}diff --git a/src/app/(main)/websites/[websiteId]/realtime/page.tsx b/src/app/(main)/websites/[websiteId]/realtime/page.tsxindex 7990c3d18..1ce90b13c 100644--- a/src/app/(main)/websites/[websiteId]/realtime/page.tsx+++ b/src/app/(main)/websites/[websiteId]/realtime/page.tsx@@ -1,9 +1,5 @@-import Realtime from './Realtime';+import WebsiteRealtimePage from './WebsiteRealtimePage';-export default function WebsiteRealtimePage({ params: { websiteId } }) {- if (!websiteId) {- return null;- }-- return <Realtime websiteId={websiteId} />;+export default function ({ params: { websiteId } }) {+ return <WebsiteRealtimePage websiteId={websiteId} />;}diff --git a/src/app/(main)/websites/[websiteId]/reports/WebsiteReports.tsx b/src/app/(main)/websites/[websiteId]/reports/WebsiteReportsPage.tsxsimilarity index 88%rename from src/app/(main)/websites/[websiteId]/reports/WebsiteReports.tsxrename to src/app/(main)/websites/[websiteId]/reports/WebsiteReportsPage.tsxindex 60c36cc60..84ad57d08 100644--- a/src/app/(main)/websites/[websiteId]/reports/WebsiteReports.tsx+++ b/src/app/(main)/websites/[websiteId]/reports/WebsiteReportsPage.tsx@@ -1,10 +1,11 @@+'use client';import Link from 'next/link';import { Button, Flexbox, Icon, Icons, Text } from 'react-basics';import { useMessages } from 'components/hooks';import WebsiteHeader from '../WebsiteHeader';import ReportsDataTable from 'app/(main)/reports/ReportsDataTable';-export function WebsiteReports({ websiteId }) {+export function WebsiteReportsPage({ websiteId }) {const { formatMessage, labels } = useMessages();return (@@ -25,4 +26,4 @@ export function WebsiteReports({ websiteId }) {);}-export default WebsiteReports;+export default WebsiteReportsPage;diff --git a/src/app/(main)/websites/[websiteId]/reports/page.tsx b/src/app/(main)/websites/[websiteId]/reports/page.tsxindex f94921348..64353b59c 100644--- a/src/app/(main)/websites/[websiteId]/reports/page.tsx+++ b/src/app/(main)/websites/[websiteId]/reports/page.tsx@@ -1,9 +1,5 @@-import WebsiteReports from './WebsiteReports';+import WebsiteReportsPage from './WebsiteReportsPage';export default function WebsiteReportsPage({ params: { websiteId } }) {- if (!websiteId) {- return null;- }-- return <WebsiteReports websiteId={websiteId} />;+ return <WebsiteReportsPage websiteId={websiteId} />;}