ISSUE-032 - Adjusted my ReactRouter solution to drop the need for an interim path element. I am also now using WorkspacesRoute for more things, which I think is appropriate.

This commit is contained in:
Kyle Geib committed 2022-01-28 10:12:12 -05:00
1 parent f9f7b739ee
commit ae4a7e7818
5 files changed
+44 -42

No files matched your search

+1 -4
View File
@@ -26,10 +26,7 @@ ReactDOM.render(
<Route path="/" element={<App />}>
<Route index element={<h1>Home</h1>} />
<Route path="broadcast" element={<Broadcast />} />
<Route path="workspaces" element={<Workspaces />}>
<Route index element={<h1>Workspaces Home</h1>} />
<Route path="s/*" element={<Workspace />} />
</Route>
<Route path="workspaces/*" element={<Workspaces />} />
</Route>
<Route path="*" element={<h1>Page Not Found</h1>} />
</Routes>