From 8e329c55057b1c5ed2f6603ca9ff6a1a7b3a342c Mon Sep 17 00:00:00 2001 From: karlavasquez8 Date: Thu, 18 Apr 2024 22:56:24 -0500 Subject: [PATCH] fix format --- packages/nextjs/components/Header.tsx | 20 ++++++++++++++++++-- packages/nextjs/public/icon-starknet.svg | 2 ++ packages/nextjs/styles/globals.css | 1 - 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/packages/nextjs/components/Header.tsx b/packages/nextjs/components/Header.tsx index 00b3a50d5..1cdea7a0a 100644 --- a/packages/nextjs/components/Header.tsx +++ b/packages/nextjs/components/Header.tsx @@ -5,6 +5,8 @@ import React, { useCallback, useRef, useState } from "react"; import { BugAntIcon } from "@heroicons/react/24/outline"; import { useOutsideClick } from "~~/hooks/scaffold-stark"; import { CustomConnectButton } from "~~/components/scaffold-stark/CustomConnectButton"; +import Image from "next/image"; +import { usePathname } from "next/navigation"; type HeaderMenuLink = { label: string; @@ -30,14 +32,28 @@ export const menuLinks: HeaderMenuLink[] = [ export const Header = () => { const [isDrawerOpen, setIsDrawerOpen] = useState(false); const burgerMenuRef = useRef(null); + const pathname = usePathname(); useOutsideClick( burgerMenuRef, useCallback(() => setIsDrawerOpen(false), []), ); return ( -
-
+
+
+ {pathname !== "/" && ( + {"logo + )} +
+
diff --git a/packages/nextjs/public/icon-starknet.svg b/packages/nextjs/public/icon-starknet.svg index 3997b8434..f123c89b7 100644 --- a/packages/nextjs/public/icon-starknet.svg +++ b/packages/nextjs/public/icon-starknet.svg @@ -23,3 +23,5 @@ + + diff --git a/packages/nextjs/styles/globals.css b/packages/nextjs/styles/globals.css index 8ddc1c62d..42e6f5531 100644 --- a/packages/nextjs/styles/globals.css +++ b/packages/nextjs/styles/globals.css @@ -2,7 +2,6 @@ @import "tailwindcss/components"; @import "tailwindcss/utilities"; - :root, [data-theme] { background: oklch(var(--b2));