update default layout

This commit is contained in:
SrGooglo 2023-02-24 14:37:47 +00:00
parent 2e5dffa538
commit ec878e7327

View File

@ -4,23 +4,33 @@ import { Layout } from "antd"
import { Sidebar, Drawer, Sidedrawer, Modal } from "components/Layout" import { Sidebar, Drawer, Sidedrawer, Modal } from "components/Layout"
import BackgroundDecorator from "components/BackgroundDecorator"
export default (props) => { export default (props) => {
return <> return <>
<div className="app_background_decorator" /> <BackgroundDecorator />
<Layout className="app_layout" style={{ height: "100%" }}> <Layout className="app_layout" style={{ height: "100%" }}>
<Modal /> <Modal />
<Drawer /> <Drawer />
<Sidebar user={props.user} /> <Sidebar />
<Sidedrawer /> <Sidedrawer />
<Layout.Content className={ <Layout.Content
classnames( className={classnames(
"content_layout", "content_layout",
...props.contentClassnames ?? [], ...props.contentClassnames ?? [],
{ {
["floating-sidebar"]: window.app?.settings.get("sidebar.floating") ["floating-sidebar"]: window.app?.cores.settings.get("sidebar.floating")
} }
)}> )}
<div id="transitionLayer" className="fade-transverse-active"> >
<div
id="transitionLayer"
className={classnames(
"page_layout",
"fade-transverse-active",
)}
>
{React.cloneElement(props.children, props)} {React.cloneElement(props.children, props)}
</div> </div>
</Layout.Content> </Layout.Content>