Skip to content

Commit fad4a64

Browse files
authored
remove Discussion feedback link from Search Overlay (#56926)
1 parent ed9bd14 commit fad4a64

File tree

1 file changed

+4
-36
lines changed

1 file changed

+4
-36
lines changed

src/search/components/input/SearchOverlay.tsx

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ import {
55
ActionList,
66
Box,
77
IconButton,
8-
Link,
98
Overlay,
109
Spinner,
1110
Stack,
1211
Text,
1312
TextInput,
14-
Token,
1513
} from '@primer/react'
1614
import {
1715
SearchIcon,
@@ -31,18 +29,18 @@ import {
3129
executeGeneralSearch,
3230
GENERAL_SEARCH_CONTEXT,
3331
} from '../helpers/execute-search-actions'
34-
35-
import styles from './SearchOverlay.module.scss'
3632
import { Banner } from '@primer/react/drafts'
3733
import { useCombinedSearchResults } from '@/search/components/hooks/useAISearchAutocomplete'
3834
import { AskAIResults } from './AskAIResults'
3935
import { sendEvent, uuidv4 } from '@/events/components/events'
40-
import { getIsStaff } from '@/events/components/dotcom-cookies'
4136
import { EventType } from '@/events/types'
4237
import { ASK_AI_EVENT_GROUP, SEARCH_OVERLAY_EVENT_GROUP } from '@/events/components/event-groups'
38+
import { useSharedUIContext } from '@/frame/components/context/SharedUIContext'
39+
4340
import type { AIReference } from '../types'
4441
import type { AutocompleteSearchHit, GeneralSearchHit } from '@/search/types'
45-
import { useSharedUIContext } from '@/frame/components/context/SharedUIContext'
42+
43+
import styles from './SearchOverlay.module.scss'
4644

4745
type Props = {
4846
searchOverlayOpen: boolean
@@ -783,36 +781,6 @@ export function SearchOverlay({
783781
}}
784782
/>
785783
<div key="description" className={styles.footer}>
786-
<Box
787-
sx={{
788-
display: 'flex',
789-
alignContent: 'start',
790-
alignItems: 'start',
791-
}}
792-
>
793-
<Token
794-
as="span"
795-
text="Beta"
796-
className={styles.betaToken}
797-
sx={{
798-
backgroundColor: 'var(--overlay-bg-color)',
799-
}}
800-
/>
801-
<Link
802-
onClick={async () => {
803-
if (await getIsStaff()) {
804-
// Hubbers users use an internal discussion for feedback
805-
window.open('https://github.com/github/docs-team/discussions/5172', '_blank')
806-
} else {
807-
// public discussion for feedback
808-
window.open('https://github.com/orgs/community/discussions/164214', '_blank')
809-
}
810-
}}
811-
as="button"
812-
>
813-
<u>{t('search.overlay.give_feedback')}</u>
814-
</Link>
815-
</Box>
816784
<Text
817785
as="p"
818786
sx={{

0 commit comments

Comments
 (0)