moved backgroundDecorator to layout

This commit is contained in:
srgooglo 2022-09-07 15:17:53 +02:00
parent d2e3c6008f
commit 90b126db68
2 changed files with 14 additions and 12 deletions

View File

@ -413,7 +413,6 @@ class App extends React.Component {
<title>{config.app.siteName}</title>
</Helmet>
<antd.ConfigProvider>
<div className="backgroundDecorator" />
<Router.InternalRouter>
<Layout
user={this.state.user}

View File

@ -5,16 +5,19 @@ import * as antd from "antd"
import { Sidebar, Drawer, Sidedrawer } from "components/layout"
export default (props) => {
return <antd.Layout className="app_layout" style={{ height: "100%" }}>
<Drawer />
<Sidebar user={props.user} />
<Sidedrawer />
<antd.Layout className="content_layout">
<antd.Layout.Content className={classnames("layout_page", ...props.layoutPageModesClassnames ?? [])}>
<div id="transitionLayer" className="fade-transverse-active">
{React.cloneElement(props.children, props)}
</div>
</antd.Layout.Content>
return <>
<div className="backgroundDecorator" />
<antd.Layout className="app_layout" style={{ height: "100%" }}>
<Drawer />
<Sidebar user={props.user} />
<Sidedrawer />
<antd.Layout className="content_layout">
<antd.Layout.Content className={classnames("layout_page", ...props.layoutPageModesClassnames ?? [])}>
<div id="transitionLayer" className="fade-transverse-active">
{React.cloneElement(props.children, props)}
</div>
</antd.Layout.Content>
</antd.Layout>
</antd.Layout>
</antd.Layout>
</>
}