From 412a842bcf5d8584b755dcce64afebda44f7edae Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 27 Nov 2023 10:01:57 -0300 Subject: hide when small --- packages/web-util/src/components/Header.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/web-util/src/components/Header.tsx b/packages/web-util/src/components/Header.tsx index 0ffc57417..b1a55fa47 100644 --- a/packages/web-util/src/components/Header.tsx +++ b/packages/web-util/src/components/Header.tsx @@ -3,7 +3,7 @@ import { LangSelector, useTranslationContext } from "../index.browser.js"; import { ComponentChildren, Fragment, VNode, h } from "preact"; import logo from "../assets/logo-2021.svg"; -export function Header({ title, iconLinkURL, sites, supportedLangs, onLogout, children }: +export function Header({ title, iconLinkURL, sites, supportedLangs, onLogout, children }: { title: string, iconLinkURL: string, children?: ComponentChildren, onLogout: (() => void) | undefined, sites: Array>, supportedLangs: string[] }): VNode { const { i18n } = useTranslationContext(); const [open, setOpen] = useState(false) @@ -25,7 +25,7 @@ export function Header({ title, iconLinkURL, sites, supportedLangs, onLogout, ch {title} -
+
{sites.length !== 0 &&
{/* */} @@ -116,7 +116,7 @@ export function Header({ title, iconLinkURL, sites, supportedLangs, onLogout, ch {children} {/* /CHILDREN */} {sites.length !== 0 && -
  • +