1
0
mirror of https://github.com/franjsco/tick3t synced 2025-06-05 22:19:18 +02:00

refactor: PageNotFound component

This commit is contained in:
Francesco Esposito
2019-07-31 16:08:23 +02:00
parent bf41042ac0
commit d650249972

View File

@ -1,25 +1,18 @@
import React, { Component } from 'react'; import React from 'react';
import Card from '../components/Card'; import Card from '../components/Card';
class PageNotFound extends Component {
constructor(props) {
super(props);
this.state = {}; const PageNotFound = (props) => {
} return (
<div>
render() { <Card
return ( title="404 - Page not found"
<div> footerLink={{path:"/", name:"Back to home"}}
<Card >
title="404 - Page not found" <p>The page is not found</p>
footerLink={{path:"/", name:"Back to home"}} </Card>
> </div>
<p>The page is not found</p> );
</Card>
</div>
);
}
} }
export default PageNotFound; export default PageNotFound;