From 2cb2f0525ef62ac959141b32f9512eddd9aa422a Mon Sep 17 00:00:00 2001 From: Lulox Date: Mon, 21 Oct 2024 23:17:32 -0300 Subject: [PATCH] Fixed navbar on mobile --- packages/nextjs/components/Header.tsx | 5 ----- packages/nextjs/components/SwitchTheme.tsx | 5 +++-- .../punk-society/ConfigMenu/AddressInfoDropdown.tsx | 5 ++++- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/nextjs/components/Header.tsx b/packages/nextjs/components/Header.tsx index facf568..6983eb8 100644 --- a/packages/nextjs/components/Header.tsx +++ b/packages/nextjs/components/Header.tsx @@ -3,7 +3,6 @@ import React from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; -import { SwitchTheme } from "./SwitchTheme"; import { PunkConnectButton } from "./punk-society/BasedConnectButton"; import { ConfigMenu } from "./punk-society/ConfigMenu"; import { FaucetButton } from "./scaffold-eth"; @@ -20,7 +19,6 @@ export const Header = () => {
-
@@ -130,9 +128,6 @@ export const Header = () => {
-
- -
diff --git a/packages/nextjs/components/SwitchTheme.tsx b/packages/nextjs/components/SwitchTheme.tsx index 018aa06..130d493 100644 --- a/packages/nextjs/components/SwitchTheme.tsx +++ b/packages/nextjs/components/SwitchTheme.tsx @@ -21,9 +21,10 @@ export const SwitchTheme = ({ className }: { className?: string }) => { if (!mounted) return null; return ( -
-
); diff --git a/packages/nextjs/components/punk-society/ConfigMenu/AddressInfoDropdown.tsx b/packages/nextjs/components/punk-society/ConfigMenu/AddressInfoDropdown.tsx index c4cb15f..7317dcc 100644 --- a/packages/nextjs/components/punk-society/ConfigMenu/AddressInfoDropdown.tsx +++ b/packages/nextjs/components/punk-society/ConfigMenu/AddressInfoDropdown.tsx @@ -10,6 +10,7 @@ import { QrCodeIcon, } from "@heroicons/react/24/outline"; import { LanguageIcon } from "@heroicons/react/24/solid"; +import { SwitchTheme } from "~~/components/SwitchTheme"; import { useOutsideClick } from "~~/hooks/scaffold-eth"; import { getTargetNetworks } from "~~/utils/scaffold-eth"; @@ -48,7 +49,9 @@ export const AddressInfoDropdown = ({ blockExplorerAddressLink }: AddressInfoDro className="dropdown-content menu z-[2] p-2 mt-2 shadow-center shadow-accent bg-base-200 rounded-box gap-1" >