Commit 0c57610a authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Use `Icon` in `ToastMessages`

parent d8f4060c
import classnames from 'classnames';
import { SvgIcon } from '@hypothesis/frontend-shared';
import { Icon } from '@hypothesis/frontend-shared';
import { useStoreProxy } from '../store/use-store';
import { withServices } from '../service-context';
......@@ -49,7 +49,7 @@ function ToastMessage({ message, onDismiss }) {
)}
>
<div className="toast-message__type">
<SvgIcon name={iconName} className="toast-message__icon" />
<Icon name={iconName} classes="toast-message__icon" />
</div>
<div className="toast-message__message">
<strong>{prefix}: </strong>
......
......@@ -166,7 +166,7 @@ describe('ToastMessages', () => {
const wrapper = createComponent();
const iconProps = wrapper
.find('SvgIcon')
.find('Icon')
.map(iconWrapper => iconWrapper.props().name);
assert.deepEqual(iconProps, testCase.icons);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment