Simplified error page
This commit is contained in:
parent
e43e58c71d
commit
c065067a62
1 changed files with 8 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue