mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-12 22:26:08 -04:00
fix: Migrate code to next 13 breaking changes
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
dae099dfa8
commit
f89b28969f
10 changed files with 55 additions and 66 deletions
|
@ -30,14 +30,12 @@ export const InternalLink: React.FC<LinkWithTextProps> = ({
|
|||
title
|
||||
}) => {
|
||||
return (
|
||||
<Link href={href}>
|
||||
<a className={className} id={id} title={title}>
|
||||
<ShowIf condition={!!icon}>
|
||||
<ForkAwesomeIcon icon={icon as IconName} fixedWidth={true} />
|
||||
|
||||
</ShowIf>
|
||||
{text}
|
||||
</a>
|
||||
<Link href={href} className={className} id={id} title={title}>
|
||||
<ShowIf condition={!!icon}>
|
||||
<ForkAwesomeIcon icon={icon as IconName} fixedWidth={true} />
|
||||
|
||||
</ShowIf>
|
||||
{text}
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -31,10 +31,7 @@ export const Redirect: React.FC<RedirectProps> = ({ to }) => {
|
|||
|
||||
return (
|
||||
<span {...testId('redirect')}>
|
||||
Redirecting to{' '}
|
||||
<Link href={to}>
|
||||
<a>{to}</a>
|
||||
</Link>
|
||||
Redirecting to <Link href={to}>{to}</Link>
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue