This commit is contained in:
TrèsAbhi committed 2024-08-19 20:31:19 -05:00
1 parent 165e9c62e8
commit 89f8136137
1 file changed
+4 -4
+4 -4
View File
@@ -21,7 +21,7 @@ import {
Text, Text,
} from '@radix-ui/themes'; } from '@radix-ui/themes';
import { usePathname } from 'next/navigation'; import { usePathname } from 'next/navigation';
import { useState } from 'react'; import { Fragment, useState } from 'react';
import { REGIONS } from '../../constants/regions'; import { REGIONS } from '../../constants/regions';
import { homeTool, TOOLS } from '../../constants/tools'; import { homeTool, TOOLS } from '../../constants/tools';
import { WARGAMING_APPLICATION_ID } from '../../constants/wargamingApplicationID'; import { WARGAMING_APPLICATION_ID } from '../../constants/wargamingApplicationID';
@@ -88,7 +88,7 @@ export default function Navbar() {
const selected = pathname.startsWith(`/tools/${tool.id}`); const selected = pathname.startsWith(`/tools/${tool.id}`);
return ( return (
<> <Fragment key={tool.title}>
{index > 0 && <Separator orientation="vertical" size="1" />} {index > 0 && <Separator orientation="vertical" size="1" />}
<Link <Link
onClick={() => setShowHamburgerMenu(false)} onClick={() => setShowHamburgerMenu(false)}
@@ -96,12 +96,11 @@ export default function Navbar() {
highContrast={selected} highContrast={selected}
size="2" size="2"
href={`tools/${tool.id}`} href={`tools/${tool.id}`}
key={tool.title}
underline={selected ? 'always' : 'hover'} underline={selected ? 'always' : 'hover'}
> >
{tool.title} {tool.title}
</Link> </Link>
</> </Fragment>
); );
})} })}
</Flex> </Flex>
@@ -272,6 +271,7 @@ export default function Navbar() {
> >
{tools.map((tool) => ( {tools.map((tool) => (
<Flex <Flex
key={tool.id}
onClick={() => setShowHamburgerMenu(false)} onClick={() => setShowHamburgerMenu(false)}
style={{ style={{
position: 'relative', position: 'relative',