mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-19 19:07:47 -05:00
Don't link if destination is null
This commit is contained in:
parent
71a67db73b
commit
608c08377a
1 changed files with 15 additions and 4 deletions
|
@ -61,19 +61,30 @@ const Credits = () => (
|
||||||
className="logo"
|
className="logo"
|
||||||
key={`logo-${index}`}
|
key={`logo-${index}`}
|
||||||
>
|
>
|
||||||
<a href={supporter.logoDestination}>
|
{supporter.logoDestination ? (<a href={supporter.logoDestination}>
|
||||||
{supporter.logoSrc ? (
|
{supporter.logoSrc ? (
|
||||||
<img
|
<img
|
||||||
alt=""
|
alt=""
|
||||||
src={supporter.logoSrc}
|
src={supporter.logoSrc}
|
||||||
width={supporter.width}
|
width={supporter.width}
|
||||||
/>
|
/>
|
||||||
) :
|
) : (
|
||||||
<div className="text-logo">
|
<div className="text-logo">
|
||||||
{supporter.textLogo}
|
{supporter.textLogo}
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
</a>) : (supporter.logoSrc ? (
|
||||||
|
<img
|
||||||
|
alt=""
|
||||||
|
src={supporter.logoSrc}
|
||||||
|
width={supporter.width}
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
<div className="text-logo">
|
||||||
|
{supporter.textLogo}
|
||||||
|
</div>
|
||||||
|
))
|
||||||
}
|
}
|
||||||
</a>
|
|
||||||
</span>
|
</span>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue