add websiteheader to share page. Fix overview WebsiteNav Bug
This commit is contained in:
1 parent
c3dad5b7ef
commit
c7a0d65590
2 files changed
+21
-18
No files matched your search
@@ -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>
|
||||
);
|
||||
}
|
||||
@@ -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} />
|
||||
|
||||
Reference in new issue
Block a user