add layout noborder mode

This commit is contained in:
Фролов 2021-07-22 12:06:27 +05:00
parent dd9fc2514d
commit 61c92f9fb8
2 changed files with 11 additions and 7 deletions

View File

@ -3,14 +3,18 @@ import PageHeader from './PageHeader'
const {Content} = Layout const {Content} = Layout
export default function LayoutPortal({title, children}) { export default function LayoutPortal({title, noSheet, children}) {
const content = noSheet
? <Layout>{children}</Layout>
: <Layout>
<Content className="site-layout-background sheet">
{children}
</Content>
</Layout>
return ( return (
<Content> <Content>
<PageHeader title={title}/> <PageHeader title={title}/>
<Layout> {content}
<Content className="site-layout-background sheet">
{children}
</Content>
</Layout>
</Content>) </Content>)
} }

View File

@ -14,7 +14,7 @@ export default function Main() {
</LayoutPortal> </LayoutPortal>
</Route> </Route>
<Route path="/deposit"> <Route path="/deposit">
<LayoutPortal> <LayoutPortal noSheet>
<Deposit/> <Deposit/>
</LayoutPortal> </LayoutPortal>
</Route> </Route>