MSP-3523 add notFound page
This commit is contained in:
1 parent
63084e945f
commit
37e9093166
2 files changed
+41
-9
No files matched your search
@@ -0,0 +1,21 @@
|
||||
import { Button } from 'antd'
|
||||
import { Layout } from 'isp-ui-kit'
|
||||
import { useNavigate } from 'react-router-dom'
|
||||
|
||||
import { routePaths } from '@routes/routePaths.ts'
|
||||
|
||||
|
||||
const { NotFoundPage } = Layout
|
||||
|
||||
const NotFound = () => {
|
||||
const navigate = useNavigate()
|
||||
return (
|
||||
<NotFoundPage>
|
||||
<Button type="primary" onClick={() => navigate(routePaths.modules)}>
|
||||
На главную
|
||||
</Button>
|
||||
</NotFoundPage>
|
||||
)
|
||||
}
|
||||
|
||||
export default NotFound
|
||||
Reference in new issue
Block a user