MSP-4164 create ErrorWrapperPage

This commit is contained in:
foxxy committed 2024-10-02 16:29:54 +03:00
1 parent 89a9e1ffb0
commit dd0262695f
1 file changed
+21
+21
View File
@@ -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 { ErrorPage } = Layout
const ErrorWrapperPage = () => {
const navigate = useNavigate()
return (
<ErrorPage>
<Button type="primary" onClick={() => navigate(routePaths.modules)}>
На главную
</Button>
</ErrorPage>
)
}
export default ErrorWrapperPage