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

View File

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