From 4b9f2f6ed8c77778b65658f4c9cf0ef37b68a237 Mon Sep 17 00:00:00 2001 From: Lulox Date: Sun, 29 Sep 2024 20:36:59 -0300 Subject: [PATCH] Added configuratioon cog on desktop version too, ups --- packages/nextjs/components/Header.tsx | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) 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 (
@@ -105,10 +101,18 @@ export const Header = () => {
-
-