mitigate hydration error due to invalid html (Link nesting)

This commit is contained in:
2022-12-11 13:55:21 +01:00
parent 1cae9250d3
commit 2e0bc5852b

View File

@@ -21,7 +21,7 @@ const Navigation = () => {
</Link> </Link>
); );
})} })}
<Link href="" className={`${styles.dropdown} ${styles.mobile}`}> <div tabIndex={0} className={`${styles.dropdown} ${styles.mobile}`}>
<GractwoLogo width={48} height={48} /> <GractwoLogo width={48} height={48} />
nawigacja nawigacja
{/* TUTAJ WSTAWIĆ IKONKĘ PÓŹNIEJ */} {/* TUTAJ WSTAWIĆ IKONKĘ PÓŹNIEJ */}
@@ -38,7 +38,7 @@ const Navigation = () => {
); );
})} })}
</div> </div>
</Link> </div>
<Link <Link
href="" href=""
style={{ display: "flex" }} style={{ display: "flex" }}