UPDATE: moved router to separate folder for better code readability

This commit is contained in:
Tejas Benibagde 2024-08-10 17:50:42 +00:00
parent 8bf47006bd
commit 349783cda0
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import { useLocation, Outlet } from "react-router-dom";
import { useLocation, Outlet } from "react-router-dom";
import { useLayoutEffect } from "react";
import SettingsContextProvider from "./context/SettingsContext";
import { useSettings } from "./hooks";
@ -7,7 +7,9 @@ export default function App() {
return (
<SettingsContextProvider>
<RestoreScroll />
<Outlet />
<ThemedPage>
<Outlet />
</ThemedPage>
</SettingsContextProvider>
);
}

View File

@ -1,7 +1,6 @@
import ReactDOM from "react-dom/client";
import { LocaleProvider } from "@douyinfe/semi-ui";
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 "./index.css";
import "./i18n/i18n.js";