mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -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"
|
||||
key={`logo-${index}`}
|
||||
>
|
||||
<a href={supporter.logoDestination}>
|
||||
{supporter.logoDestination ? (<a href={supporter.logoDestination}>
|
||||
{supporter.logoSrc ? (
|
||||
<img
|
||||
alt=""
|
||||
src={supporter.logoSrc}
|
||||
width={supporter.width}
|
||||
/>
|
||||
) :
|
||||
) : (
|
||||
<div className="text-logo">
|
||||
{supporter.textLogo}
|
||||
</div>
|
||||
}
|
||||
</a>
|
||||
)}
|
||||
</a>) : (supporter.logoSrc ? (
|
||||
<img
|
||||
alt=""
|
||||
src={supporter.logoSrc}
|
||||
width={supporter.width}
|
||||
/>
|
||||
) : (
|
||||
<div className="text-logo">
|
||||
{supporter.textLogo}
|
||||
</div>
|
||||
))
|
||||
}
|
||||
</span>
|
||||
))}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue