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}) {
return ( const content = noSheet
<Content> ? <Layout>{children}</Layout>
<PageHeader title={title}/> : <Layout>
<Layout>
<Content className="site-layout-background sheet"> <Content className="site-layout-background sheet">
{children} {children}
</Content> </Content>
</Layout> </Layout>
return (
<Content>
<PageHeader title={title}/>
{content}
</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>