@@ -4,10 +4,10 @@ import styled from '@emotion/styled';
4
4
import { openModal } from 'sentry/actionCreators/modal' ;
5
5
import { Alert } from 'sentry/components/core/alert' ;
6
6
import { Button } from 'sentry/components/core/button' ;
7
- import { LinkButton } from 'sentry/components/core/button/linkButton' ;
8
7
import { Flex } from 'sentry/components/core/layout' ;
9
8
import { Link } from 'sentry/components/core/link' ;
10
9
import { Tooltip } from 'sentry/components/core/tooltip' ;
10
+ import { DropdownMenu } from 'sentry/components/dropdownMenu' ;
11
11
import { useOrganizationRepositories } from 'sentry/components/events/autofix/preferences/hooks/useOrganizationRepositories' ;
12
12
import { useProjectSeerPreferences } from 'sentry/components/events/autofix/preferences/hooks/useProjectSeerPreferences' ;
13
13
import { useUpdateProjectSeerPreferences } from 'sentry/components/events/autofix/preferences/hooks/useUpdateProjectSeerPreferences' ;
@@ -16,8 +16,9 @@ import LoadingIndicator from 'sentry/components/loadingIndicator';
16
16
import Panel from 'sentry/components/panels/panel' ;
17
17
import PanelHeader from 'sentry/components/panels/panelHeader' ;
18
18
import QuestionTooltip from 'sentry/components/questionTooltip' ;
19
- import { IconAdd , IconGithub } from 'sentry/icons' ;
19
+ import { IconAdd } from 'sentry/icons' ;
20
20
import { t , tct } from 'sentry/locale' ;
21
+ import { PluginIcon } from 'sentry/plugins/components/pluginIcon' ;
21
22
import { space } from 'sentry/styles/space' ;
22
23
import type { Project } from 'sentry/types/project' ;
23
24
import useOrganization from 'sentry/utils/useOrganization' ;
@@ -238,14 +239,32 @@ export function AutofixRepositories({project}: ProjectSeerProps) {
238
239
/>
239
240
</ Flex >
240
241
< div style = { { display : 'flex' , alignItems : 'center' , gap : space ( 1 ) } } >
241
- < LinkButton
242
+ < DropdownMenu
242
243
size = "sm"
243
- icon = { < IconGithub /> }
244
- to = { `/settings/${ organization . slug } /integrations/github/` }
245
- style = { { textTransform : 'none' } }
246
- >
247
- { t ( 'Manage Integration' ) }
248
- </ LinkButton >
244
+ triggerLabel = { t ( 'Manage Integration' ) }
245
+ items = { [
246
+ {
247
+ key : 'github' ,
248
+ label : (
249
+ < Flex gap = "sm" align = "center" >
250
+ < PluginIcon pluginId = "github" size = { 16 } />
251
+ < div > { t ( 'GitHub' ) } </ div >
252
+ </ Flex >
253
+ ) ,
254
+ to : `/settings/${ organization . slug } /integrations/github/` ,
255
+ } ,
256
+ {
257
+ key : 'github_enterprise' ,
258
+ label : (
259
+ < Flex gap = "sm" align = "center" >
260
+ < PluginIcon pluginId = "github_enterprise" size = { 16 } />
261
+ < div > { t ( 'GitHub Enterprise' ) } </ div >
262
+ </ Flex >
263
+ ) ,
264
+ to : `/settings/${ organization . slug } /integrations/github_enterprise/` ,
265
+ } ,
266
+ ] }
267
+ />
249
268
< Tooltip
250
269
isHoverable
251
270
title = {
0 commit comments