Add legacyBehavior flag to Links with nested a
We'll fix this later
This commit is contained in:
parent
e37495072d
commit
67b7e3eb73
3 changed files with 4 additions and 4 deletions
|
|
@ -248,7 +248,7 @@ const GridRep = (props: Props) => {
|
|||
)
|
||||
|
||||
return (
|
||||
<Link href={`/p/${props.shortcode}`}>
|
||||
<Link legacyBehavior href={`/p/${props.shortcode}`}>
|
||||
<a className={styles.gridRep}>
|
||||
{detailsWithUsername}
|
||||
<div className={styles.weaponGrid}>
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ const LinkItem = ({ icon, title, link, className, ...props }: Props) => {
|
|||
|
||||
return (
|
||||
<div className={classes}>
|
||||
<Link href={link}>
|
||||
<Link legacyBehavior href={link}>
|
||||
<a href={link} target="_blank" rel="noreferrer">
|
||||
<div className={styles.left}>
|
||||
<i className={styles.icon}>{icon}</i>
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ const PartyHeader = (props: Props) => {
|
|||
) => {
|
||||
return (
|
||||
<div>
|
||||
<Link href={`/${username}`} passHref>
|
||||
<Link legacyBehavior href={`/${username}`} passHref>
|
||||
<a className={linkClass}>{userBlock(username, picture, element)}</a>
|
||||
</Link>
|
||||
</div>
|
||||
|
|
@ -193,7 +193,7 @@ const PartyHeader = (props: Props) => {
|
|||
const linkedRaidBlock = (raid: Raid) => {
|
||||
return (
|
||||
<div>
|
||||
<Link href={`/teams?raid=${raid.slug}`} passHref>
|
||||
<Link legacyBehavior href={`/teams?raid=${raid.slug}`} passHref>
|
||||
<a className={`Raid ${linkClass}`}>{raid.name[locale]}</a>
|
||||
</Link>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue