ISSUE-033 - Created a new component, <IndexHeading> that is a lightly stylized new header element for basic indexes.

I also adjusted the 404 page to now include the menu for the sake of usability.
This commit is contained in:
Kyle Geib committed 2022-02-03 12:26:23 -05:00
1 parent 218dc84507
commit 4c61a24c21
3 files changed
+13 -3

No files matched your search

+4 -2
View File
@@ -14,6 +14,8 @@ import { GlobalStyle, theme } from "./shared/theme";
import { GlobalFonts } from "./fonts";
import { store } from "./store";
import { IndexHeading } from "./components/Common/IndexHeading.styled";
ReactDOM.render(
<React.StrictMode>
<Provider store={store}>
@@ -23,11 +25,11 @@ ReactDOM.render(
<BrowserRouter>
<Routes>
<Route path="/" element={<App />}>
<Route index element={<h1>Home</h1>} />
<Route index element={<IndexHeading>Home</IndexHeading>} />
<Route path="broadcast" element={<Broadcast />} />
<Route path="workspaces/*" element={<Workspaces />} />
<Route path="*" element={<IndexHeading>Page Not Found</IndexHeading>} />
</Route>
<Route path="*" element={<h1>Page Not Found</h1>} />
</Routes>
</BrowserRouter>
</ThemeProvider>