Unverified Commit ebd6a96d authored by Marcos Iglesias's avatar Marcos Iglesias Committed by GitHub

Fixes typeahead result icons not showing (#446)

parent a47078c2
......@@ -3,7 +3,7 @@ import { Link } from 'react-router-dom';
import { shallow } from 'enzyme';
import ResultItem, { ResultItemProps } from '../';
import ResultItem, { ResultItemProps } from '.';
describe('ResultItem', () => {
let props: ResultItemProps;
......@@ -34,7 +34,7 @@ describe('ResultItem', () => {
});
it('renders icon with correct props', () => {
expect(link.find('img').props().className).toEqual(`result-icon ${props.iconClass}`);
expect(link.find('span').props().className).toEqual(`result-icon ${props.iconClass}`);
});
describe('renders result-info', () => {
......
......@@ -15,7 +15,7 @@ const ResultItem: React.SFC<ResultItemProps> = ({ href, iconClass, id, onItemSel
return (
<li className="list-group-item">
<Link id={id} className="result-item-link" onClick={onItemSelect} to={ href }>
<img className={`result-icon ${iconClass}`} />
<span className={`result-icon ${iconClass}`} />
<div className="result-info my-auto">
<div className="truncated">
......
......@@ -71,7 +71,7 @@
text-decoration: none;
img.icon.icon-search,
img.icon.result-icon,
span.icon.result-icon,
.sb-avatar {
margin: auto 8px auto 0px;
}
......
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