From 1483d10a12398737e51ebca50bcf36213c33ad64 Mon Sep 17 00:00:00 2001 From: Paul Wackerow <54227730+wackerow@users.noreply.github.com> Date: Mon, 12 Dec 2022 12:01:20 -0800 Subject: [PATCH] fix onClick vs legacyBehavior adds missing legacyBehavior attribute to NextLink tags to prevent nesting anchor elements which was causing hydration warnings. Also fixes 'The legacy behavior requires onClick be set on the child of next/link' --- src/components/UI/docs/DocsLinks.tsx | 4 ++-- src/components/UI/docs/LinksList.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/UI/docs/DocsLinks.tsx b/src/components/UI/docs/DocsLinks.tsx index fefa420555..509236f7d9 100644 --- a/src/components/UI/docs/DocsLinks.tsx +++ b/src/components/UI/docs/DocsLinks.tsx @@ -53,8 +53,8 @@ export const DocsLinks: FC = ({ navLinks, toggleMobileAccordion }) => { _groupHover={{ background: 'primary', color: 'bg', textDecoration: 'none' }} > {to ? ( - - + + = ({ links, toggleMobileAccordion }) _hover={{ background: 'primary', color: 'bg' }} data-group > - - + +