From f35f2511f132fe1a264c4212d68ce8a02ddf6582 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/GlobalMenu/AccountMenu.tsx | 2 +- lib/components/Header/Header.tsx | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/components/GlobalMenu/AccountMenu.tsx b/lib/components/GlobalMenu/AccountMenu.tsx index 2398987..950fd0f 100644 --- a/lib/components/GlobalMenu/AccountMenu.tsx +++ b/lib/components/GlobalMenu/AccountMenu.tsx @@ -86,4 +86,4 @@ export const AccountMenu = ({ items={accountSwitcher} /> ); -}; +}; \ No newline at end of file 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 ( - +