From d6502499726700f49ff70087264e710a9212a233 Mon Sep 17 00:00:00 2001 From: Francesco Esposito <33671357+frsposito@users.noreply.github.com> Date: Wed, 31 Jul 2019 16:08:23 +0200 Subject: [PATCH] refactor: PageNotFound component --- src/containers/PageNotFound.js | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/src/containers/PageNotFound.js b/src/containers/PageNotFound.js index a81e378..c42a5c9 100644 --- a/src/containers/PageNotFound.js +++ b/src/containers/PageNotFound.js @@ -1,25 +1,18 @@ -import React, { Component } from 'react'; +import React from 'react'; import Card from '../components/Card'; -class PageNotFound extends Component { - constructor(props) { - super(props); - this.state = {}; - } - - render() { - return ( -
- -

The page is not found

-
-
- ); - } +const PageNotFound = (props) => { + return ( +
+ +

The page is not found

+
+
+ ); } export default PageNotFound; \ No newline at end of file