Skip to content

Commit

Permalink
chore: fix routes
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Aug 26, 2022
1 parent e5c4879 commit 19b4016
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/frontend/src/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,10 @@ const Routes = () => (
<div className="mt-md-4 d-flex flex-column justify-content-center">
<Suspense fallback={<div>Loading...</div>}>
<ReactRouterRoutes>
<Route path="/" element={<ListNotes />}>
<Route index element={<ListNotes />} />
<Route path="notes" element={<ListNotes />}>
<Route path="new" element={<CreateNote />} />
<Route path=":noteId" element={<ShowNote />} />
</Route>
<Route element={<NotFound />} />
</Route>
<Route path="/" element={<ListNotes />} />
<Route path="/note/new" element={<CreateNote />} />
<Route path="/notes/:noteId" element={<ShowNote />} />
<Route path="*" element={<NotFound />} />
</ReactRouterRoutes>
</Suspense>
</div>
Expand Down

0 comments on commit 19b4016

Please sign in to comment.