From c065067a62bce98fb4604ce407d2a40204bd3d58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Fri, 9 Apr 2021 17:29:11 +0200 Subject: [PATCH] Simplified error page --- webapp/src/pages/errorPage.tsx | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) 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