mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
revert websitelayout changes
This commit is contained in:
parent
c7a0d65590
commit
752f395d83
1 changed files with 18 additions and 20 deletions
|
|
@ -8,25 +8,23 @@ import { WebsiteNav } from './WebsiteNav';
|
|||
|
||||
export function WebsiteLayout({ websiteId, children }: { websiteId: string; children: ReactNode }) {
|
||||
return (
|
||||
<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>
|
||||
<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>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue