Skip to content

Commit 03e227c

Browse files
authored
remove search popover (#56639)
1 parent 4d38e79 commit 03e227c

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/search/components/input/SearchBarButton.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ import { CopilotIcon, SearchIcon } from '@primer/octicons-react'
44

55
import { useTranslation } from '@/languages/components/useTranslation'
66
import { QueryParams } from '@/search/components/hooks/useMultiQueryParams'
7-
import { useCTAPopoverContext } from '@/frame/components/context/CTAContext'
87

98
import styles from './SearchBarButton.module.scss'
10-
import { AISearchCTAPopup } from './AISearchCTAPopup'
119

1210
type Props = {
1311
isSearchOpen: boolean
@@ -25,7 +23,6 @@ export function SearchBarButton({
2523
instanceId,
2624
}: Props) {
2725
const { t } = useTranslation('search')
28-
const { isOpen, dismiss } = useCTAPopoverContext()
2926

3027
const urlSearchInputQuery = params['search-overlay-input']
3128

@@ -57,15 +54,10 @@ export function SearchBarButton({
5754
{/* We don't want to show the input when overlay is open */}
5855
{!isSearchOpen ? (
5956
<>
60-
<AISearchCTAPopup
61-
isOpen={isOpen}
62-
setIsSearchOpen={setIsSearchOpen}
63-
dismiss={dismiss}
64-
instanceId={instanceId}
65-
/>
6657
{/* On mobile only the IconButton is shown */}
6758
<IconButton
6859
data-testid="mobile-search-button"
60+
data-instance={instanceId}
6961
ref={searchButtonRef}
7062
className={styles.searchIconButton}
7163
onClick={handleClick}
@@ -76,6 +68,7 @@ export function SearchBarButton({
7668
{/* On large and up the SearchBarButton is shown */}
7769
<button
7870
data-testid="search"
71+
data-instance={instanceId}
7972
tabIndex={0}
8073
aria-label={t('search.input.placeholder_no_icon')}
8174
className={styles.searchInputButton}

0 commit comments

Comments
 (0)