Added a link wrapper to the icon if the href config option has been set
This commit is contained in:
parent
4c45c6453f
commit
aaf681937d
@ -12,7 +12,13 @@ export default function Logo({ options }) {
|
|||||||
<Raw>
|
<Raw>
|
||||||
{options.icon ? (
|
{options.icon ? (
|
||||||
<div className="resolved mr-3">
|
<div className="resolved mr-3">
|
||||||
|
{options.href ? (
|
||||||
|
<a href={options.href} target="_blank" rel="noreferrer">
|
||||||
<ResolvedIcon icon={options.icon} width={48} height={48} />
|
<ResolvedIcon icon={options.icon} width={48} height={48} />
|
||||||
|
</a>
|
||||||
|
) : (
|
||||||
|
<ResolvedIcon icon={options.icon} width={48} height={48} />
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
// fallback to homepage logo
|
// fallback to homepage logo
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user