This repository was archived by the owner on Mar 30, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ export const Bar = ({
4545} ) => {
4646 const client = useClient ( )
4747 const { isMobile } = useBreakpoints ( )
48+ const isSearchEnabled = searchOptions . enabled && ! isPublic
4849
4950 const fetchInitialData = useCallback ( ( ) => {
5051 if ( ! isPublic ) {
@@ -120,7 +121,7 @@ export const Bar = ({
120121 }
121122
122123 const renderSearch = ( ) => {
123- return searchOptions . enabled && ! isMobile ? (
124+ return isSearchEnabled && ! isMobile ? (
124125 < div className = "u-flex-grow u-mh-2" >
125126 < AssistantDesktop
126127 componentsProps = { { SearchBarDesktop : { size : 'small' } } }
@@ -140,7 +141,7 @@ export const Bar = ({
140141 { barLeft || renderLeft ( ) }
141142 { barCenter || renderCenter ( ) }
142143 < div className = "u-flex-grow" > { barSearch || renderSearch ( ) } </ div >
143- { searchOptions . enabled && isMobile ? < SearchButton /> : null }
144+ { isSearchEnabled && isMobile ? < SearchButton /> : null }
144145 { barRight }
145146 { ! isPublic && renderTwakeRight ( ) }
146147 </ div >
You can’t perform that action at this time.
0 commit comments