mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Don't display image in extension chip if iconURI undefined
This commit is contained in:
parent
ea1c0ce4a2
commit
f7987fd568
1 changed files with 6 additions and 4 deletions
|
@ -5,10 +5,12 @@ require('./extension-chip.scss');
|
|||
|
||||
const ExtensionChip = props => (
|
||||
<div className={classNames('extension-chip', {'has-status': props.hasStatus})}>
|
||||
<img
|
||||
className="extension-icon"
|
||||
src={props.iconURI}
|
||||
/>
|
||||
{props.iconURI &&
|
||||
<img
|
||||
className="extension-icon"
|
||||
src={props.iconURI}
|
||||
/>
|
||||
}
|
||||
<div className="extension-content">
|
||||
<span>{props.extensionName}</span>
|
||||
{props.hasStatus && (
|
||||
|
|
Loading…
Reference in a new issue