Skip to content

Commit 7c9c736

Browse files
committed
Basic 404 page.
1 parent 66329d1 commit 7c9c736

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

web/src/components/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'
55
import { Box, Container, CssBaseline } from '@mui/material'
66
import { Helmet, HelmetProvider } from 'react-helmet-async'
77
import { LocalizationProvider } from '@mui/x-date-pickers'
8+
import { NotFound } from '../routes/not-found/NotFound'
89
import { Provider } from 'react-redux'
910
import { ReduxRouter, createRouterMiddleware } from '@lagunovsky/redux-react-router'
1011
import { Route, Routes } from 'react-router-dom'
@@ -69,6 +70,7 @@ const App = (): ReactElement => {
6970
element={<ColumnLevel />}
7071
/>
7172
<Route path={'/lineage/:nodeType/:namespace/:name'} element={<TableLevel />} />
73+
<Route path='*' element={<NotFound />} />
7274
</Routes>
7375
<Toast />
7476
</Box>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright 2018-2024 contributors to the Marquez project
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
import * as React from 'react'
5+
import { Box } from '@mui/system'
6+
import { Button } from '@mui/material'
7+
import { Link as RouterLink } from 'react-router-dom'
8+
import MqEmpty from '../../components/core/empty/MqEmpty'
9+
10+
export const NotFound = () => {
11+
return (
12+
<Box pt={4} display={'flex'} justifyContent={'center'}>
13+
<MqEmpty title={'Not Found'}>
14+
<>
15+
Sorry, the page you are looking for does not exist.
16+
<Button size={'small'} component={RouterLink} to={'/'}>
17+
Go Home
18+
</Button>
19+
</>
20+
</MqEmpty>
21+
</Box>
22+
)
23+
}

0 commit comments

Comments
 (0)