From e0bcbbc7bd5abede6ecca6adb15f50b275df905c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Poizat?= Date: Fri, 16 May 2025 07:33:56 +0200 Subject: [PATCH] fix: Hide search in public context --- src/components/Bar.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Bar.jsx b/src/components/Bar.jsx index 6ad7da24..16423129 100644 --- a/src/components/Bar.jsx +++ b/src/components/Bar.jsx @@ -45,6 +45,7 @@ export const Bar = ({ }) => { const client = useClient() const { isMobile } = useBreakpoints() + const isSearchEnabled = searchOptions.enabled && !isPublic const fetchInitialData = useCallback(() => { if (!isPublic) { @@ -120,7 +121,7 @@ export const Bar = ({ } const renderSearch = () => { - return searchOptions.enabled && !isMobile ? ( + return isSearchEnabled && !isMobile ? (
{barSearch || renderSearch()}
- {searchOptions.enabled && isMobile ? : null} + {isSearchEnabled && isMobile ? : null} {barRight} {!isPublic && renderTwakeRight()}