mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +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>
|
||||
</Helmet>
|
||||
<antd.ConfigProvider>
|
||||
<div className="backgroundDecorator" />
|
||||
<Router.InternalRouter>
|
||||
<Layout
|
||||
user={this.state.user}
|
||||
|
@ -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>
|
||||
</>
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user