added 404 page

This commit is contained in:
plebbitor
2023-03-06 18:38:33 +01:00
parent dc07abf702
commit f14a91c0bc
3 changed files with 37 additions and 1 deletions
+2
View File
@@ -5,6 +5,7 @@ import Home from './components/Home';
import Board from './components/Board';
import Thread from './components/Thread';
import Catalog from './components/Catalog';
import NotFound from './components/NotFound';
import { createGlobalStyle } from 'styled-components';
import 'react-tooltip/dist/react-tooltip.css';
import preloadImages from './utils/preloadImages';
@@ -76,6 +77,7 @@ export default function App() {
<Route path={`/:subplebbitAddress/catalog`} element={<Catalog setBodyStyle={setBodyStyle} /> }>
<Route path='post' element={<Catalog />} />
</Route>
<Route path='*' element={<NotFound />} />
</Routes>
</BoardContext.Provider>
</div>