Skip to content

Commit 19b4016

Browse files
committed
chore: fix routes
1 parent e5c4879 commit 19b4016

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

packages/frontend/src/Routes.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,10 @@ const Routes = () => (
1010
<div className="mt-md-4 d-flex flex-column justify-content-center">
1111
<Suspense fallback={<div>Loading...</div>}>
1212
<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>
13+
<Route path="/" element={<ListNotes />} />
14+
<Route path="/note/new" element={<CreateNote />} />
15+
<Route path="/notes/:noteId" element={<ShowNote />} />
16+
<Route path="*" element={<NotFound />} />
2117
</ReactRouterRoutes>
2218
</Suspense>
2319
</div>

0 commit comments

Comments
 (0)