fix share pages for new screens
This commit is contained in:
1 parent
85f57e90c5
commit
6cec5f246b
2 files changed
+18
-2
No files matched your search
@@ -1,10 +1,10 @@
|
|||||||
import { Button, Column, Icon, Row, ThemeButton } from '@umami/react-zen';
|
import { Button, Column, Icon, Row, ThemeButton } from '@umami/react-zen';
|
||||||
import { NavMenu } from '@/components/common/NavMenu';
|
import { NavMenu } from '@/components/common/NavMenu';
|
||||||
import { useMessages, useNavigation, useShare } from '@/components/hooks';
|
import { useMessages, useNavigation, useShare } from '@/components/hooks';
|
||||||
import { AlignEndHorizontal, Clock, Eye, PanelLeft, Sheet, Tag, User } from '@/components/icons';
|
import { AlignEndHorizontal, Clock, Eye, PanelLeft, Sheet, Tag, User, Video } from '@/components/icons';
|
||||||
import { LanguageButton } from '@/components/input/LanguageButton';
|
import { LanguageButton } from '@/components/input/LanguageButton';
|
||||||
import { PreferencesButton } from '@/components/input/PreferencesButton';
|
import { PreferencesButton } from '@/components/input/PreferencesButton';
|
||||||
import { Funnel, Lightning, Magnet, Money, Network, Path, Target } from '@/components/svg';
|
import { Funnel, Gauge, Lightning, Magnet, Money, Network, Path, Target } from '@/components/svg';
|
||||||
import { ShareBranding } from './ShareBranding';
|
import { ShareBranding } from './ShareBranding';
|
||||||
|
|
||||||
export function ShareNav({
|
export function ShareNav({
|
||||||
@@ -52,6 +52,12 @@ export function ShareNav({
|
|||||||
icon: <Clock />,
|
icon: <Clock />,
|
||||||
path: renderPath('/realtime'),
|
path: renderPath('/realtime'),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'performance',
|
||||||
|
label: t(labels.performance),
|
||||||
|
icon: <Gauge />,
|
||||||
|
path: renderPath('/performance'),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'compare',
|
id: 'compare',
|
||||||
label: t(labels.compare),
|
label: t(labels.compare),
|
||||||
@@ -94,6 +100,12 @@ export function ShareNav({
|
|||||||
icon: <Magnet />,
|
icon: <Magnet />,
|
||||||
path: renderPath('/retention'),
|
path: renderPath('/retention'),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'replays',
|
||||||
|
label: t(labels.replays),
|
||||||
|
icon: <Video />,
|
||||||
|
path: renderPath('/replays'),
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,9 +10,11 @@ import { JourneysPage } from '@/app/(main)/websites/[websiteId]/(reports)/journe
|
|||||||
import { RetentionPage } from '@/app/(main)/websites/[websiteId]/(reports)/retention/RetentionPage';
|
import { RetentionPage } from '@/app/(main)/websites/[websiteId]/(reports)/retention/RetentionPage';
|
||||||
import { RevenuePage } from '@/app/(main)/websites/[websiteId]/(reports)/revenue/RevenuePage';
|
import { RevenuePage } from '@/app/(main)/websites/[websiteId]/(reports)/revenue/RevenuePage';
|
||||||
import { UTMPage } from '@/app/(main)/websites/[websiteId]/(reports)/utm/UTMPage';
|
import { UTMPage } from '@/app/(main)/websites/[websiteId]/(reports)/utm/UTMPage';
|
||||||
|
import { PerformancePage } from '@/app/(main)/websites/[websiteId]/(reports)/performance/PerformancePage';
|
||||||
import { ComparePage } from '@/app/(main)/websites/[websiteId]/compare/ComparePage';
|
import { ComparePage } from '@/app/(main)/websites/[websiteId]/compare/ComparePage';
|
||||||
import { EventsPage } from '@/app/(main)/websites/[websiteId]/events/EventsPage';
|
import { EventsPage } from '@/app/(main)/websites/[websiteId]/events/EventsPage';
|
||||||
import { RealtimePage } from '@/app/(main)/websites/[websiteId]/realtime/RealtimePage';
|
import { RealtimePage } from '@/app/(main)/websites/[websiteId]/realtime/RealtimePage';
|
||||||
|
import { ReplaysPage } from '@/app/(main)/websites/[websiteId]/replays/ReplaysPage';
|
||||||
import { SessionsPage } from '@/app/(main)/websites/[websiteId]/sessions/SessionsPage';
|
import { SessionsPage } from '@/app/(main)/websites/[websiteId]/sessions/SessionsPage';
|
||||||
import { WebsiteHeader } from '@/app/(main)/websites/[websiteId]/WebsiteHeader';
|
import { WebsiteHeader } from '@/app/(main)/websites/[websiteId]/WebsiteHeader';
|
||||||
import { WebsitePage } from '@/app/(main)/websites/[websiteId]/WebsitePage';
|
import { WebsitePage } from '@/app/(main)/websites/[websiteId]/WebsitePage';
|
||||||
@@ -33,12 +35,14 @@ const PAGE_COMPONENTS: Record<string, React.ComponentType<{ websiteId: string }>
|
|||||||
events: EventsPage,
|
events: EventsPage,
|
||||||
sessions: SessionsPage,
|
sessions: SessionsPage,
|
||||||
realtime: RealtimePage,
|
realtime: RealtimePage,
|
||||||
|
performance: PerformancePage,
|
||||||
compare: ComparePage,
|
compare: ComparePage,
|
||||||
breakdown: BreakdownPage,
|
breakdown: BreakdownPage,
|
||||||
goals: GoalsPage,
|
goals: GoalsPage,
|
||||||
funnels: FunnelsPage,
|
funnels: FunnelsPage,
|
||||||
journeys: JourneysPage,
|
journeys: JourneysPage,
|
||||||
retention: RetentionPage,
|
retention: RetentionPage,
|
||||||
|
replays: ReplaysPage,
|
||||||
utm: UTMPage,
|
utm: UTMPage,
|
||||||
revenue: RevenuePage,
|
revenue: RevenuePage,
|
||||||
attribution: AttributionPage,
|
attribution: AttributionPage,
|
||||||
|
|||||||
Reference in new issue
Block a user