-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
26 lines (25 loc) · 951 Bytes
/
App.tsx
File metadata and controls
26 lines (25 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { BrowserRouter, Routes, Route } from 'react-router'
import Home from '@/pages/Home'
import { Navbar } from '@/components/layout/Navbar'
import GitClicker from '@/pages/GitClicker'
import Rules from '@/pages/Rules'
import { ItemsList } from '@/components/rules/ItemsList'
import { CreateItemForm } from '@/components/rules/CreateItemForm'
import { EditItemForm } from '@/components/rules/EditItemForm'
export default function App() {
return (
<BrowserRouter>
<Routes>
<Route path="/" element={<Navbar />}>
<Route index element={<Home />} />
<Route path="gitclicker" element={<GitClicker />} />
<Route path="rules" element={<Rules />}>
<Route index element={<ItemsList />} />
<Route path="add" element={<CreateItemForm />} />
<Route path="edit/:id" element={<EditItemForm />} />
</Route>
</Route>
</Routes>
</BrowserRouter>
)
}