Created the Root.jsx layout
This commit is contained in:
parent
6430567584
commit
3b308367d2
24
client/src/common/layouts/Root/Root.jsx
Normal file
24
client/src/common/layouts/Root/Root.jsx
Normal file
@ -0,0 +1,24 @@
|
||||
import Header from "@/common/components/Header";
|
||||
import "./styles.sass";
|
||||
import Footer from "@/common/components/Footer";
|
||||
import {useOutlet} from "react-router";
|
||||
import Background from "@/common/components/Background";
|
||||
|
||||
export const Root = () => {
|
||||
const outlet = useOutlet();
|
||||
|
||||
return (
|
||||
<div className="root">
|
||||
<Header />
|
||||
|
||||
<main>
|
||||
{outlet}
|
||||
</main>
|
||||
|
||||
<Footer />
|
||||
|
||||
<Background />
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user