From b641af8c8fd5750f805d7daf6241190d8c889d30 Mon Sep 17 00:00:00 2001 From: Sidney Alcantara Date: Wed, 20 Jul 2022 14:51:17 +1000 Subject: [PATCH] fix nav items not accessible with Tab --- src/layouts/Navigation/NavItem.tsx | 46 ++++++++++++++++++++---------- 1 file changed, 31 insertions(+), 15 deletions(-) diff --git a/src/layouts/Navigation/NavItem.tsx b/src/layouts/Navigation/NavItem.tsx index c33bf6f3..23f53138 100644 --- a/src/layouts/Navigation/NavItem.tsx +++ b/src/layouts/Navigation/NavItem.tsx @@ -1,29 +1,45 @@ import { Link, useLocation } from "react-router-dom"; import { MenuItem, MenuItemProps } from "@mui/material"; +import { spreadSx } from "@src/utils/ui"; -export default function NavItem(props: MenuItemProps) { +const linkProps = { target: "_blank", rel: "noopener noreferrer" }; + +export default function NavItem( + props: MenuItemProps +) { const { pathname } = useLocation(); return ( ); }