mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-31 23:28:34 -04:00
fix: Remove anchor hack from internal-link
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
a7fd14a3d4
commit
6d30448157
1 changed files with 6 additions and 8 deletions
|
@ -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} />
|
|
||||||
|
</ShowIf>
|
||||||
</ShowIf>
|
{text}
|
||||||
{text}
|
|
||||||
</a>
|
|
||||||
</Link>
|
</Link>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue