From b958403224c44779292d23c9022494aad5d33c94 Mon Sep 17 00:00:00 2001 From: Francis Cao Date: Tue, 27 Jan 2026 23:54:43 -0800 Subject: [PATCH] add mobile navbar to share page --- src/app/share/[...shareId]/SharePage.tsx | 29 ++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/src/app/share/[...shareId]/SharePage.tsx b/src/app/share/[...shareId]/SharePage.tsx index d61b42b7..95c2cdac 100644 --- a/src/app/share/[...shareId]/SharePage.tsx +++ b/src/app/share/[...shareId]/SharePage.tsx @@ -1,5 +1,5 @@ 'use client'; -import { Column, Grid, useTheme } from '@umami/react-zen'; +import { Column, Grid, Icon, Row, Text, useTheme } from '@umami/react-zen'; import { useRouter } from 'next/navigation'; import { useEffect, useMemo } from 'react'; import { AttributionPage } from '@/app/(main)/websites/[websiteId]/(reports)/attribution/AttributionPage'; @@ -19,6 +19,8 @@ import { WebsitePage } from '@/app/(main)/websites/[websiteId]/WebsitePage'; import { WebsiteProvider } from '@/app/(main)/websites/WebsiteProvider'; import { PageBody } from '@/components/common/PageBody'; import { useShareTokenQuery } from '@/components/hooks'; +import { MobileMenuButton } from '@/components/input/MobileMenuButton'; +import { Logo } from '@/components/svg'; import { ShareFooter } from './ShareFooter'; import { ShareHeader } from './ShareHeader'; import { ShareNav } from './ShareNav'; @@ -94,6 +96,8 @@ export function SharePage({ shareId, path = '' }: { shareId: string; path?: stri } const { websiteId, parameters = {}, whiteLabel } = shareToken; + const logoName = whiteLabel?.name || 'umami'; + const logoImage = whiteLabel?.image; // Redirect to only allowed section - return null while redirecting if ( @@ -117,6 +121,25 @@ export function SharePage({ shareId, path = '' }: { shareId: string; path?: stri return ( + + + + {({ close }) => { + return ; + }} + + + {whiteLabel?.image ? ( + {logoName} + ) : ( + + + + )} + {logoName} + + + - + + +