diff --git a/src/locales/en/translation.yaml b/src/locales/en/translation.yaml index 6b8c227..8c190a4 100644 --- a/src/locales/en/translation.yaml +++ b/src/locales/en/translation.yaml @@ -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: Created by <1>Jeff Avallone Generated images licensed: "Generated images licensed: <1><0>" diff --git a/src/pages/404/Component.js b/src/pages/404/Component.js index 56b1ebc..4c07aa0 100644 --- a/src/pages/404/Component.js +++ b/src/pages/404/Component.js @@ -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 }) => (
@@ -16,4 +17,8 @@ const Component = ({ t }) => ( // eslint-disable-line react/prop-types ); +Component.propTypes = { + t: PropTypes.func +}; + export default translate()(Component);