Skip to content

Commit

Permalink
Merge pull request #1103 from swaterkamp/GUImisc
Browse files Browse the repository at this point in the history
Make OsIcon an Img component
  • Loading branch information
bjoernricks authored Dec 19, 2018
2 parents 91e2487 + a8109f3 commit 47becd3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gsa/src/web/components/icon/osicon.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import PropTypes from 'web/utils/proptypes';
import Divider from 'web/components/layout/divider';
import Layout from 'web/components/layout/layout';

import Icon from './icon';
import Img from 'web/components/img/img';

const OsIcon = ({
displayOsCpe = true,
Expand Down Expand Up @@ -85,9 +85,10 @@ const OsIcon = ({
return (
<Layout>
<Divider title={title}>
<Icon
<Img
{...props}
img={os_icon}
width="16px"
src={os_icon}
/>
{displayOsName && isDefined(os) &&
<span>{os.title}</span>
Expand Down

0 comments on commit 47becd3

Please sign in to comment.