wrapped in context FabContext
This commit is contained in:
parent
39ef265b56
commit
04d64e57c9
@ -4,12 +4,15 @@ 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 (
|
||||||
|
<FabProvider>
|
||||||
<div className="layout-wrapper layout-content-navbar">
|
<div className="layout-wrapper layout-content-navbar">
|
||||||
<div className="layout-container">
|
<div className="layout-container">
|
||||||
<Sidebar />
|
<Sidebar />
|
||||||
@ -20,9 +23,11 @@ const HomeLayout = () => {
|
|||||||
<Footer />
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<FloatingMenu />
|
||||||
<div className="layout-overlay layout-menu-toggle"></div>
|
<div className="layout-overlay layout-menu-toggle"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</FabProvider>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user