Switching back to SVG components for icons

No longer need the hack to only use them in components while URLs are
used in styles since I don't need icons in the styles anymore. Embedding
the markup also provides the option to restyle the icons
This commit is contained in:
Jeff Avallone
2018-02-11 06:58:59 -05:00
parent 1de5079aa9
commit 49a236bf89
9 changed files with 98 additions and 35 deletions
+2 -2
View File
@@ -4,10 +4,10 @@ import ReactDOM from 'react-dom';
import '../style.css';
import Message from '../components/Message';
import errorIcon from 'feather-icons/dist/icons/alert-octagon.svg';
import ErrorIcon from 'feather-icons/dist/icons/alert-octagon.svg';
ReactDOM.render(
<Message icon={ errorIcon } heading="404 Page Not Found">
<Message icon={ ErrorIcon } heading="404 Page Not Found">
<p>The page you have requested could not be found</p>
</Message>,
document.getElementById('root'));