mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -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 => (
|
const ExtensionChip = props => (
|
||||||
<div className={classNames('extension-chip', {'has-status': props.hasStatus})}>
|
<div className={classNames('extension-chip', {'has-status': props.hasStatus})}>
|
||||||
|
{props.iconURI &&
|
||||||
<img
|
<img
|
||||||
className="extension-icon"
|
className="extension-icon"
|
||||||
src={props.iconURI}
|
src={props.iconURI}
|
||||||
/>
|
/>
|
||||||
|
}
|
||||||
<div className="extension-content">
|
<div className="extension-content">
|
||||||
<span>{props.extensionName}</span>
|
<span>{props.extensionName}</span>
|
||||||
{props.hasStatus && (
|
{props.hasStatus && (
|
||||||
|
|
Loading…
Reference in a new issue