File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,10 @@ const Routes = () => (
10
10
< div className = "mt-md-4 d-flex flex-column justify-content-center" >
11
11
< Suspense fallback = { < div > Loading...</ div > } >
12
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 >
13
+ < Route path = "/" element = { < ListNotes /> } />
14
+ < Route path = "/note/new" element = { < CreateNote /> } />
15
+ < Route path = "/notes/:noteId" element = { < ShowNote /> } />
16
+ < Route path = "*" element = { < NotFound /> } />
21
17
</ ReactRouterRoutes >
22
18
</ Suspense >
23
19
</ div >
You can’t perform that action at this time.
0 commit comments