From 97de92428cc878cdf31ba8c7e223948121cf04c8 Mon Sep 17 00:00:00 2001 From: Sean Erik Scully Date: Tue, 26 Nov 2024 18:31:22 +0100 Subject: [PATCH] fix --- lib/components/Header/Header.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/components/Header/Header.tsx b/lib/components/Header/Header.tsx index b4dc3aa..0de8a69 100644 --- a/lib/components/Header/Header.tsx +++ b/lib/components/Header/Header.tsx @@ -2,12 +2,12 @@ import { useEscapeKey } from '../../hooks'; import { DrawerBase, DropdownBase } from '../Dropdown'; import { GlobalMenu, type GlobalMenuProps } from '../GlobalMenu'; -import type { Account } from '../GlobalMenu/AccountButton.tsx'; +import type { Account } from '../GlobalMenu'; import { useRootContext } from '../RootProvider'; import { Searchbar, type SearchbarProps } from '../Searchbar'; import { HeaderBase } from './HeaderBase'; import { HeaderButton } from './HeaderButton'; -import { HeaderLogo } from './HeaderLogo'; +import { HeaderLogo, type HeaderLogoProps } from './HeaderLogo'; import { HeaderMenu } from './HeaderMenu'; import { HeaderSearch } from './HeaderSearch'; import styles from './header.module.css'; @@ -16,9 +16,10 @@ export interface HeaderProps { menu: GlobalMenuProps; search?: SearchbarProps; currentAccount?: Account; + logo?: HeaderLogoProps; } -export const Header = ({ search, menu, currentAccount }: HeaderProps) => { +export const Header = ({ search, menu, currentAccount, logo = {} }: HeaderProps) => { const { currentId, toggleId, openId, closeAll } = useRootContext(); useEscapeKey(closeAll); @@ -37,7 +38,7 @@ export const Header = ({ search, menu, currentAccount }: HeaderProps) => { return ( - +