From 891e82ad9202294fe0605bff2e193b7b5567ceb1 Mon Sep 17 00:00:00 2001 From: J M Rossy Date: Sun, 24 Dec 2023 12:32:53 -0500 Subject: [PATCH] Footer cleanup --- src/components/nav/Footer.tsx | 58 ++++++++++------------------------- 1 file changed, 16 insertions(+), 42 deletions(-) diff --git a/src/components/nav/Footer.tsx b/src/components/nav/Footer.tsx index 8476d6b..230e4cb 100644 --- a/src/components/nav/Footer.tsx +++ b/src/components/nav/Footer.tsx @@ -1,62 +1,36 @@ import Image from 'next/image'; import { links } from 'src/config/links'; -import Moon from 'src/images/icons/moon.svg'; -import Sun from 'src/images/icons/sun.svg'; import Discord from 'src/images/logos/discord.svg'; import Github from 'src/images/logos/github.svg'; import Twitter from 'src/images/logos/twitter.svg'; -import { useDarkMode } from 'src/styles/mediaQueries'; +import { useBlockNumber } from 'wagmi'; export function Footer() { return ( -
+
-
- -
-
- -
-
- -
-
- -
- ); -} - -function ThemeToggle() { - const { isDarkMode, setDarkMode } = useDarkMode(); - return ( -
setDarkMode(!isDarkMode)} - > -
- Theme -
-
-
- light theme icon -
-
- dark theme icon -
-
+ + +
+
); } function FooterIconLink({ to, imgSrc, alt }: { to: string; imgSrc: any; alt: string }) { return ( - + {alt} ); } + +function BlockNumber() { + const { data, isError } = useBlockNumber({ + watch: true, + cacheTime: 20_000, + staleTime: 10_000, + }); + return
{isError ? 'Error' : data?.toString() || '...'}
; +}