mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-05-24 18:39:12 +00:00
UPDATE: moved router to separate folder for better code readability
This commit is contained in:
parent
8bf47006bd
commit
349783cda0
@ -1,4 +1,4 @@
|
|||||||
import { useLocation, Outlet } from "react-router-dom";
|
import { useLocation, Outlet } from "react-router-dom";
|
||||||
import { useLayoutEffect } from "react";
|
import { useLayoutEffect } from "react";
|
||||||
import SettingsContextProvider from "./context/SettingsContext";
|
import SettingsContextProvider from "./context/SettingsContext";
|
||||||
import { useSettings } from "./hooks";
|
import { useSettings } from "./hooks";
|
||||||
@ -7,7 +7,9 @@ export default function App() {
|
|||||||
return (
|
return (
|
||||||
<SettingsContextProvider>
|
<SettingsContextProvider>
|
||||||
<RestoreScroll />
|
<RestoreScroll />
|
||||||
<Outlet />
|
<ThemedPage>
|
||||||
|
<Outlet />
|
||||||
|
</ThemedPage>
|
||||||
</SettingsContextProvider>
|
</SettingsContextProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import ReactDOM from "react-dom/client";
|
import ReactDOM from "react-dom/client";
|
||||||
import { LocaleProvider } from "@douyinfe/semi-ui";
|
import { LocaleProvider } from "@douyinfe/semi-ui";
|
||||||
import { Analytics } from "@vercel/analytics/react";
|
import { Analytics } from "@vercel/analytics/react";
|
||||||
import App from "./App.jsx";
|
|
||||||
import en_US from "@douyinfe/semi-ui/lib/es/locale/source/en_US";
|
import en_US from "@douyinfe/semi-ui/lib/es/locale/source/en_US";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
import "./i18n/i18n.js";
|
import "./i18n/i18n.js";
|
||||||
|
Loading…
Reference in New Issue
Block a user