diff --git a/webapp/src/pages/errorPage.tsx b/webapp/src/pages/errorPage.tsx index 2cbb1c348..d2af6e37f 100644 --- a/webapp/src/pages/errorPage.tsx +++ b/webapp/src/pages/errorPage.tsx @@ -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 ( +
+
{'Error'}
+
+ ) +}) -class ErrorPage extends React.PureComponent { - render(): React.ReactNode { - return ( -
-
{'Error'}
-
- ) - } -} - -export default withRouter(ErrorPage) +export default ErrorPage