diff --git a/packages/astro/src/components/FooterNav.astro b/packages/astro/src/components/FooterNav.astro index 520b276..da7dbda 100644 --- a/packages/astro/src/components/FooterNav.astro +++ b/packages/astro/src/components/FooterNav.astro @@ -1,15 +1,6 @@ --- import { Icon } from "astro-icon/components"; -const icons = { - twitter: "twitter", - facebook: "facebook", - linkedin: "linkedin", - github: "github", - slack: "slack", - meetup: "meetup", -}; - const routes = [ [ "Resources", @@ -44,7 +35,7 @@ const routes = [ ["https://www.meetup.com/sfcivictech/", "meetup", true], ], ], -]; +] as const; // because of annoying differences between dev and build modes, due to this // behavior (https://github.com/withastro/astro/issues/5630), always remove // any trailing slash so currentPage can match the pages above diff --git a/packages/astro/src/components/HeaderNav.astro b/packages/astro/src/components/HeaderNav.astro index 19fe0cf..7c2aae0 100644 --- a/packages/astro/src/components/HeaderNav.astro +++ b/packages/astro/src/components/HeaderNav.astro @@ -29,9 +29,9 @@ const currentPage = fullPath.slice(fullPath.lastIndexOf("/") + 1);