From 5a30e2bed81be46e9c347c9a1b243229208fafd1 Mon Sep 17 00:00:00 2001 From: Steve Paul Date: Sat, 16 Dec 2023 15:21:15 +0530 Subject: [PATCH] Cleanup imports --- src/pages/index.astro | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 96a395e..ecdbc2b 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,7 +1,6 @@ --- import Layout from "../layouts/Layout.astro"; import Card from "../components/Card.astro"; -import { $filter, $updateFilter } from "../state/filter.js"; import data from "../data/tools.json"; @@ -23,7 +22,7 @@ import "@new-ui/spacings"; .map(section => ({title: section.title, category: section.category})) .map(navItem => { let classNames = "nav__item nu-u-text--secondary-alt nu-c-fs-normal nu-u-py-5 nu-u-px-0 nu-u-me-8"; - if (navItem.category === $filter.get()) { + if (navItem.category === "all") { classNames += " is-active" } return