forked from ddrilling/asb_cloud_front
add layout noborder mode
This commit is contained in:
parent
dd9fc2514d
commit
61c92f9fb8
@ -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>)
|
||||||
}
|
}
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user