From 5ab4a704142b0d3fbfcc79350a6750d426780867 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Tue, 13 Feb 2018 17:34:22 -0500 Subject: [PATCH] Adjusting formatting on 404 page title and adding PropTypes --- src/locales/en/translation.yaml | 2 +- src/pages/404/Component.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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);