diff --git a/client/components/AddRemoveButton.jsx b/client/components/AddRemoveButton.jsx index f0ec1272..7350c177 100644 --- a/client/components/AddRemoveButton.jsx +++ b/client/components/AddRemoveButton.jsx @@ -1,17 +1,20 @@ import React from 'react'; import PropTypes from 'prop-types'; -import InlineSVG from 'react-inlinesvg'; -const addIcon = require('../images/plus.svg'); -const removeIcon = require('../images/minus.svg'); +import AddIcon from '../images/plus.svg'; +import RemoveIcon from '../images/minus.svg'; const AddRemoveButton = ({ type, onClick }) => { - const alt = type === 'add' ? 'add to collection' : 'remove from collection'; - const icon = type === 'add' ? addIcon : removeIcon; + const alt = type === 'add' ? 'Add to collection' : 'Remove from collection'; + const Icon = type === 'add' ? AddIcon : RemoveIcon; return ( -