fix: Remove anchor hack from internal-link

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-11-06 08:28:49 +01:00
parent a7fd14a3d4
commit 6d30448157

View file

@ -31,14 +31,12 @@ export const InternalLink: React.FC<LinkWithTextProps> = ({
title title
}) => { }) => {
return ( return (
<Link href={href}> <Link href={href} className={className} id={id} title={title}>
<a className={className} id={id} title={title}> <ShowIf condition={!!icon}>
<ShowIf condition={!!icon}> <ForkAwesomeIcon icon={icon as IconName} fixedWidth={true} />
<ForkAwesomeIcon icon={icon as IconName} fixedWidth={true} /> &nbsp;
&nbsp; </ShowIf>
</ShowIf> {text}
{text}
</a>
</Link> </Link>
) )
} }