File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'
55import { Box , Container , CssBaseline } from '@mui/material'
66import { Helmet , HelmetProvider } from 'react-helmet-async'
77import { LocalizationProvider } from '@mui/x-date-pickers'
8+ import { NotFound } from '../routes/not-found/NotFound'
89import { Provider } from 'react-redux'
910import { ReduxRouter , createRouterMiddleware } from '@lagunovsky/redux-react-router'
1011import { 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 >
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments