Adjusting formatting on 404 page title and adding PropTypes

This commit is contained in:
Jeff Avallone 2018-02-13 17:34:22 -05:00
parent 94e511bb96
commit 5ab4a70414
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
404 Page Not Found: 404 Page Not Found
404 Page Not Found: "404: Page Not Found"
An error has occurred: An error has occurred
Created by <1>Jeff Avallone</1>: Created by <1>Jeff Avallone</1>
Generated images licensed: "Generated images licensed: <1><0></0></1>"

View File

@ -1,4 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
import { translate, Trans } from 'react-i18next';
import Message from '../../components/Message';
@ -6,7 +7,7 @@ import AlertIcon from 'feather-icons/dist/icons/alert-octagon.svg';
import Header from '../../components/Header';
import Footer from '../../components/Footer';
const Component = ({ t }) => ( // eslint-disable-line react/prop-types
const Component = ({ t }) => (
<React.Fragment>
<Header/>
<Message type="error" icon={ AlertIcon } heading={ t('404 Page Not Found') }>
@ -16,4 +17,8 @@ const Component = ({ t }) => ( // eslint-disable-line react/prop-types
</React.Fragment>
);
Component.propTypes = {
t: PropTypes.func
};
export default translate()(Component);