Adding support for default icons based on Message type

This commit is contained in:
Jeff Avallone
2018-02-13 21:28:31 -05:00
parent b83f5cd34d
commit d328727ceb
4 changed files with 12 additions and 7 deletions
+1 -2
View File
@@ -3,14 +3,13 @@ import PropTypes from 'prop-types';
import { translate, Trans } from 'react-i18next';
import Message from 'components/Message';
import AlertIcon from 'feather-icons/dist/icons/alert-octagon.svg';
import Header from 'components/Header';
import Footer from 'components/Footer';
const Component = ({ t }) => (
<React.Fragment>
<Header/>
<Message type="error" icon={ AlertIcon } heading={ t('404 Page Not Found') }>
<Message type="error" heading={ t('404 Page Not Found') }>
<p><Trans>The page you have requested could not be found</Trans></p>
</Message>
<Footer/>