From 46fd061aff71645207cd4008ca15da1f58f87307 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Sun, 25 Oct 2026 18:37:28 -0500 Subject: [PATCH] simplify --- packages/website/src/components/Navbar.astro | 52 +++----------------- 1 file changed, 8 insertions(+), 44 deletions(-) diff --git a/packages/website/src/components/Navbar.astro b/packages/website/src/components/Navbar.astro index b67d5d10a..06eebdc2e 100644 --- a/packages/website/src/components/Navbar.astro +++ b/packages/website/src/components/Navbar.astro @@ -5,7 +5,7 @@ import { GearIcon, HamburgerMenuIcon, } from "@radix-ui/react-icons"; -import { Box, Code, Flex, IconButton, Link } from "@radix-ui/themes"; +import { Box, Code, Flex, Grid, IconButton, Link } from "@radix-ui/themes"; import { resolveBranchName } from "../core/blitzkit/branches"; import { getStrings } from "../core/i18n/getStrings"; import { Var } from "../core/radix/var"; @@ -20,7 +20,7 @@ export interface Props { const { integrated = false } = Astro.props; const toolsFiltered = Object.values(tools).filter( - (tool) => !tool.href && !tool.disabled + (tool) => !tool.href && !tool.disabled, ); const { locale } = Astro.props; const branchName = resolveBranchName(locale); @@ -105,7 +105,7 @@ const strings = getStrings(locale); @@ -133,41 +133,6 @@ const strings = getStrings(locale); - - { - toolsFiltered.map((tool) => { - const selected = Astro.url.pathname.includes(`/${tool.id}`); - const toolStrings = - strings.website.tools[ - (tool.strings ?? - tool.id) as keyof typeof strings.website.tools - ]; - - return ( - - {toolStrings.name} - - ); - }) - } - - - - - + @@ -200,11 +165,10 @@ const strings = getStrings(locale); - { toolsFiltered.map((tool) => { @@ -229,7 +193,7 @@ const strings = getStrings(locale); }} > +