Skip to content
This repository was archived by the owner on Mar 30, 2026. It is now read-only.

Commit ee3cac1

Browse files
committed
fix: Hide search in public context
1 parent 70803c9 commit ee3cac1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/Bar.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)