Abstract LayoutContext

This commit is contained in:
1ilit
2024-03-09 19:42:09 +02:00
parent c9ad695abb
commit 610e2fa5c5
12 changed files with 77 additions and 27 deletions

View File

@@ -6,6 +6,7 @@ import Shortcuts from "./pages/Shortcuts";
import Templates from "./pages/Templates";
import { useEffect } from "react";
import LandingPage from "./pages/LandingPage";
import LayoutContextProvider from "./context/LayoutContext";
const Wrapper = ({ children }) => {
const location = useLocation();
@@ -21,7 +22,14 @@ function App() {
<Wrapper>
<Routes>
<Route path="/" element={<LandingPage />} />
<Route path="/editor" element={<Editor />} />
<Route
path="/editor"
element={
<LayoutContextProvider>
<Editor />
</LayoutContextProvider>
}
/>
<Route path="/survey" element={<Survey />} />
<Route path="/shortcuts" element={<Shortcuts />} />
<Route path="/bug_report" element={<BugReport />} />