wrapped in context FabContext
This commit is contained in:
parent
39ef265b56
commit
04d64e57c9
@ -4,25 +4,30 @@ import Header from "../components/Layout/Header";
|
|||||||
import Sidebar from "../components/Layout/Sidebar";
|
import Sidebar from "../components/Layout/Sidebar";
|
||||||
|
|
||||||
import Footer from "../components/Layout/Footer";
|
import Footer from "../components/Layout/Footer";
|
||||||
|
import FloatingMenu from "../components/common/FloatingMenu";
|
||||||
|
import { FabProvider } from "../Context/FabContext";
|
||||||
|
|
||||||
const HomeLayout = () => {
|
const HomeLayout = () => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
Main();
|
Main();
|
||||||
}, []);
|
}, []);
|
||||||
return (
|
return (
|
||||||
<div className="layout-wrapper layout-content-navbar" >
|
<FabProvider>
|
||||||
<div className="layout-container" >
|
<div className="layout-wrapper layout-content-navbar">
|
||||||
<Sidebar />
|
<div className="layout-container">
|
||||||
<div className="layout-page ">
|
<Sidebar />
|
||||||
<Header />
|
<div className="layout-page ">
|
||||||
<div className="content-wrapper" >
|
<Header />
|
||||||
<Outlet />
|
<div className="content-wrapper">
|
||||||
<Footer />
|
<Outlet />
|
||||||
|
<Footer />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<FloatingMenu />
|
||||||
|
<div className="layout-overlay layout-menu-toggle"></div>
|
||||||
</div>
|
</div>
|
||||||
<div className="layout-overlay layout-menu-toggle"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</FabProvider>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user