From 8d741cf1c39b76a20e227f16c42f8a4db6d5bad1 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 13 Feb 2024 11:31:04 -0300 Subject: do not show sites strings when there is no sites --- packages/web-util/src/components/Header.tsx | 33 ++++++++++++++++------------- 1 file changed, 18 insertions(+), 15 deletions(-) (limited to 'packages/web-util/src') diff --git a/packages/web-util/src/components/Header.tsx b/packages/web-util/src/components/Header.tsx index e5662fc70..0f50b8327 100644 --- a/packages/web-util/src/components/Header.tsx +++ b/packages/web-util/src/components/Header.tsx @@ -112,21 +112,24 @@ export function Header({ title, iconLinkURL, sites, onLogout, children }: {/* CHILDREN */} {children} {/* /CHILDREN */} -
  • -
    - Sites -
    - -
  • + {sites.length > 0 ? +
  • +
    + Sites +
    + +
  • + : undefined + } -- cgit v1.2.3