From da0d5d50e82a13e486a86eceaa55d2b9ed8f2421 Mon Sep 17 00:00:00 2001 From: Dylan Decrulle Date: Fri, 22 Nov 2024 11:10:35 +0100 Subject: [PATCH] add option to disable display #345 #346 --- src/Header/Header.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Header/Header.tsx b/src/Header/Header.tsx index c81f7cb66..5a146762e 100644 --- a/src/Header/Header.tsx +++ b/src/Header/Header.tsx @@ -88,6 +88,8 @@ export type HeaderProps = { > >; style?: CSSProperties; + /** Default: false */ + disableDisplay?: boolean; }; export namespace HeaderProps { @@ -133,6 +135,7 @@ export const Header = memo( onSearchButtonClick, classes = {}, style, + disableDisplay = false, ...rest } = props; @@ -194,7 +197,7 @@ export const Header = memo( return ( <> - + {disableDisplay && }