+
J. Hunter DeLoche
diff --git a/src/components/Heading.astro b/src/components/Heading.astro
deleted file mode 100644
index c6a7e68..0000000
--- a/src/components/Heading.astro
+++ /dev/null
@@ -1,7 +0,0 @@
----
-
----
-
-
-
-
diff --git a/src/components/Nav.tsx b/src/components/Nav.tsx
index 19f98cb..cae2275 100644
--- a/src/components/Nav.tsx
+++ b/src/components/Nav.tsx
@@ -1,4 +1,6 @@
-import { For, createSignal, onMount } from "solid-js";
+import { For, onMount } from "solid-js";
+import { useStore } from "@nanostores/solid";
+import { $currentPage } from "@/scripts/currentPage"
interface Page {
path: string,
@@ -16,13 +18,12 @@ const activeClasses = "font-bold !text-foreground";
const Nav = () => {
- const [currentPage, setCurrentPage] = createSignal
();
+ const currentPage = useStore($currentPage);
onMount(() => {
- setCurrentPage(window.location.pathname);
+ $currentPage.set(window.location.pathname);
});
-
return (