Adjusting formatting on 404 page title and adding PropTypes
This commit is contained in:
parent
94e511bb96
commit
5ab4a70414
@ -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>"
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user