We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb14b15 commit 4d7df84Copy full SHA for 4d7df84
packages/frontend/src/Routes.tsx
@@ -10,14 +10,10 @@ const Routes = () => (
10
<div className="mt-md-4 d-flex flex-column justify-content-center">
11
<Suspense fallback={<div>Loading...</div>}>
12
<ReactRouterRoutes>
13
- <Route path="/" element={<ListNotes />}>
14
- <Route index element={<ListNotes />} />
15
- <Route path="notes" element={<ListNotes />}>
16
- <Route path="new" element={<CreateNote />} />
17
- <Route path=":noteId" element={<ShowNote />} />
18
- </Route>
19
- <Route element={<NotFound />} />
20
+ <Route path="/" element={<ListNotes />} />
+ <Route path="/note/new" element={<CreateNote />} />
+ <Route path="/notes/:noteId" element={<ShowNote />} />
+ <Route path="*" element={<NotFound />} />
21
</ReactRouterRoutes>
22
</Suspense>
23
</div>
0 commit comments