diff --git a/packages/nextjs/components/Header.tsx b/packages/nextjs/components/Header.tsx index ffb13a3..8d4f09b 100644 --- a/packages/nextjs/components/Header.tsx +++ b/packages/nextjs/components/Header.tsx @@ -4,11 +4,10 @@ import React, { useRef, useState } from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { SwitchTheme } from "./SwitchTheme"; -import { hardhat } from "viem/chains"; import { useAccount } from "wagmi"; import { Cog6ToothIcon, HomeIcon, MagnifyingGlassIcon } from "@heroicons/react/24/solid"; import { FaucetButton, RainbowKitCustomConnectButton } from "~~/components/scaffold-eth"; -import { useOutsideClick, useScaffoldReadContract, useTargetNetwork } from "~~/hooks/scaffold-eth"; +import { useOutsideClick, useScaffoldReadContract } from "~~/hooks/scaffold-eth"; /** * Site header @@ -43,9 +42,6 @@ export const Header = () => { useOutsideClick(menuRef, closeSettingsMenu); - const { targetNetwork } = useTargetNetwork(); - const isLocalNetwork = targetNetwork.id === hardhat.id; - return (