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
|
An error has occurred: An error has occurred
|
||||||
Created by <1>Jeff Avallone</1>: Created by <1>Jeff Avallone</1>
|
Created by <1>Jeff Avallone</1>: Created by <1>Jeff Avallone</1>
|
||||||
Generated images licensed: "Generated images licensed: <1><0></0></1>"
|
Generated images licensed: "Generated images licensed: <1><0></0></1>"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import PropTypes from 'prop-types';
|
||||||
import { translate, Trans } from 'react-i18next';
|
import { translate, Trans } from 'react-i18next';
|
||||||
|
|
||||||
import Message from '../../components/Message';
|
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 Header from '../../components/Header';
|
||||||
import Footer from '../../components/Footer';
|
import Footer from '../../components/Footer';
|
||||||
|
|
||||||
const Component = ({ t }) => ( // eslint-disable-line react/prop-types
|
const Component = ({ t }) => (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<Header/>
|
<Header/>
|
||||||
<Message type="error" icon={ AlertIcon } heading={ t('404 Page Not Found') }>
|
<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>
|
</React.Fragment>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Component.propTypes = {
|
||||||
|
t: PropTypes.func
|
||||||
|
};
|
||||||
|
|
||||||
export default translate()(Component);
|
export default translate()(Component);
|
||||||
|
Loading…
Reference in New Issue
Block a user