mirror of
https://github.com/hex248/tsos.git
synced 2026-02-08 10:43:39 +00:00
layout and settings page
This commit is contained in:
19
src/App.tsx
19
src/App.tsx
@@ -1,11 +1,28 @@
|
||||
import { BrowserRouter, Route, Routes } from "react-router-dom";
|
||||
import Index from "@/Index";
|
||||
import Settings from "./Settings";
|
||||
import Layout from "./Layout";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<BrowserRouter>
|
||||
<Routes>
|
||||
<Route path="/" element={<Index />} />
|
||||
<Route
|
||||
path="/"
|
||||
element={
|
||||
<Layout>
|
||||
<Index />
|
||||
</Layout>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/settings"
|
||||
element={
|
||||
<Layout>
|
||||
<Settings />
|
||||
</Layout>
|
||||
}
|
||||
/>
|
||||
</Routes>
|
||||
</BrowserRouter>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user