From 89f8136137df1a067034d7544e9adc3d44c2c6b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Mon, 19 Aug 2024 20:31:19 -0500 Subject: [PATCH] fix: key --- src/components/Navbar/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsx index 0e251cdd7..c69c07863 100644 --- a/src/components/Navbar/index.tsx +++ b/src/components/Navbar/index.tsx @@ -21,7 +21,7 @@ import { Text, } from '@radix-ui/themes'; import { usePathname } from 'next/navigation'; -import { useState } from 'react'; +import { Fragment, useState } from 'react'; import { REGIONS } from '../../constants/regions'; import { homeTool, TOOLS } from '../../constants/tools'; import { WARGAMING_APPLICATION_ID } from '../../constants/wargamingApplicationID'; @@ -88,7 +88,7 @@ export default function Navbar() { const selected = pathname.startsWith(`/tools/${tool.id}`); return ( - <> + {index > 0 && } setShowHamburgerMenu(false)} @@ -96,12 +96,11 @@ export default function Navbar() { highContrast={selected} size="2" href={`tools/${tool.id}`} - key={tool.title} underline={selected ? 'always' : 'hover'} > {tool.title} - + ); })} @@ -272,6 +271,7 @@ export default function Navbar() { > {tools.map((tool) => ( setShowHamburgerMenu(false)} style={{ position: 'relative',