Adding support for "info"-type Messages

This commit is contained in:
Jeff Avallone
2018-05-24 17:56:35 -04:00
parent 1a8bb762cb
commit 031dc2235a
3 changed files with 16 additions and 0 deletions
+3
View File
@@ -3,10 +3,12 @@ import PropTypes from 'prop-types';
import style from './style.css';
import InfoIcon from 'feather-icons/dist/icons/info.svg';
import ErrorIcon from 'feather-icons/dist/icons/alert-octagon.svg';
import WarningIcon from 'feather-icons/dist/icons/alert-triangle.svg';
const iconTypes = {
info: InfoIcon,
error: ErrorIcon,
warning: WarningIcon
};
@@ -36,6 +38,7 @@ const Message = ({ type, icon, heading, children }) => (
Message.propTypes = {
type: PropTypes.oneOf([
'info',
'error',
'warning'
]),
+12
View File
@@ -57,4 +57,16 @@
color: var(--color-orange);
}
}
&.info {
& .header {
background: var(--color-blue);
color: var(--color-white);
}
& svg {
background: var(--color-white);
color: var(--color-blue);
}
}
}