Skip to content

armgit / umami

Public Imported from GitHub
0

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.

add websiteheader to share page. Fix overview WebsiteNav Bug

Francis Caoc7a0d655904a
diff --git a/src/app/(main)/websites/[websiteId]/WebsiteLayout.tsx b/src/app/(main)/websites/[websiteId]/WebsiteLayout.tsx
index 7260a7ea6..06bb506a7 100644
--- a/src/app/(main)/websites/[websiteId]/WebsiteLayout.tsx
+++ b/src/app/(main)/websites/[websiteId]/WebsiteLayout.tsx
@@ -8,23 +8,25 @@ import { WebsiteNav } from './WebsiteNav';
export function WebsiteLayout({ websiteId, children }: { websiteId: string; children: ReactNode }) {
return (
- <WebsiteProvider websiteId={websiteId}>
- <Grid columns={{ xs: '1fr', lg: 'auto 1fr' }} width="100%" height="100%">
- <Column
- display={{ xs: 'none', lg: 'flex' }}
- width="240px"
- height="100%"
- border="right"
- backgroundColor
- marginRight="2"
- >
- <WebsiteNav websiteId={websiteId} />
- </Column>
- <PageBody gap>
- <WebsiteHeader showActions />
- <Column>{children}</Column>
- </PageBody>
- </Grid>
- </WebsiteProvider>
+ <Column backgroundColor="2">
+ <WebsiteProvider websiteId={websiteId}>
+ <Grid columns={{ xs: '1fr', lg: 'auto 1fr' }} width="100%" height="100%">
+ <Column
+ display={{ xs: 'none', lg: 'flex' }}
+ width="240px"
+ height="100%"
+ border="right"
+ backgroundColor
+ marginRight="2"
+ >
+ <WebsiteNav websiteId={websiteId} />
+ </Column>
+ <PageBody gap>
+ <WebsiteHeader showActions />
+ <Column>{children}</Column>
+ </PageBody>
+ </Grid>
+ </WebsiteProvider>
+ </Column>
);
}
diff --git a/src/app/share/[...shareId]/SharePage.tsx b/src/app/share/[...shareId]/SharePage.tsx
index 8493a4164..d61b42b72 100644
--- a/src/app/share/[...shareId]/SharePage.tsx
+++ b/src/app/share/[...shareId]/SharePage.tsx
@@ -131,6 +131,7 @@ export function SharePage({ shareId, path = '' }: { shareId: string; path?: stri
<WebsiteProvider websiteId={websiteId}>
<ShareHeader whiteLabel={whiteLabel} />
<Column>
+ <WebsiteHeader showActions={false} />
<PageComponent websiteId={websiteId} />
</Column>
<ShareFooter whiteLabel={whiteLabel} />