Simplified error page

This commit is contained in:
Jesús Espino 2021-04-09 17:29:11 +02:00
parent e43e58c71d
commit c065067a62

View file

@ -2,23 +2,14 @@
// See LICENSE.txt for license information.
import React from 'react'
import {
withRouter,
RouteComponentProps,
} from 'react-router-dom'
import './errorPage.scss'
type Props = RouteComponentProps
const ErrorPage = React.memo(() => {
return (
<div className='ErrorPage'>
<div className='title'>{'Error'}</div>
</div>
)
})
class ErrorPage extends React.PureComponent<Props> {
render(): React.ReactNode {
return (
<div className='ErrorPage'>
<div className='title'>{'Error'}</div>
</div>
)
}
}
export default withRouter(ErrorPage)
export default ErrorPage