mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
moved backgroundDecorator
to layout
This commit is contained in:
parent
d2e3c6008f
commit
90b126db68
@ -413,7 +413,6 @@ class App extends React.Component {
|
|||||||
<title>{config.app.siteName}</title>
|
<title>{config.app.siteName}</title>
|
||||||
</Helmet>
|
</Helmet>
|
||||||
<antd.ConfigProvider>
|
<antd.ConfigProvider>
|
||||||
<div className="backgroundDecorator" />
|
|
||||||
<Router.InternalRouter>
|
<Router.InternalRouter>
|
||||||
<Layout
|
<Layout
|
||||||
user={this.state.user}
|
user={this.state.user}
|
||||||
|
@ -5,16 +5,19 @@ import * as antd from "antd"
|
|||||||
import { Sidebar, Drawer, Sidedrawer } from "components/layout"
|
import { Sidebar, Drawer, Sidedrawer } from "components/layout"
|
||||||
|
|
||||||
export default (props) => {
|
export default (props) => {
|
||||||
return <antd.Layout className="app_layout" style={{ height: "100%" }}>
|
return <>
|
||||||
<Drawer />
|
<div className="backgroundDecorator" />
|
||||||
<Sidebar user={props.user} />
|
<antd.Layout className="app_layout" style={{ height: "100%" }}>
|
||||||
<Sidedrawer />
|
<Drawer />
|
||||||
<antd.Layout className="content_layout">
|
<Sidebar user={props.user} />
|
||||||
<antd.Layout.Content className={classnames("layout_page", ...props.layoutPageModesClassnames ?? [])}>
|
<Sidedrawer />
|
||||||
<div id="transitionLayer" className="fade-transverse-active">
|
<antd.Layout className="content_layout">
|
||||||
{React.cloneElement(props.children, props)}
|
<antd.Layout.Content className={classnames("layout_page", ...props.layoutPageModesClassnames ?? [])}>
|
||||||
</div>
|
<div id="transitionLayer" className="fade-transverse-active">
|
||||||
</antd.Layout.Content>
|
{React.cloneElement(props.children, props)}
|
||||||
|
</div>
|
||||||
|
</antd.Layout.Content>
|
||||||
|
</antd.Layout>
|
||||||
</antd.Layout>
|
</antd.Layout>
|
||||||
</antd.Layout>
|
</>
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user