mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
Merge pull request #2691 from apple502j/little-bridge
Don't link if destination is null
This commit is contained in:
commit
77733e2a87
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