Skip to content

Commit b1ba5a4

Browse files
ref(issues): Move breadcrumb globe onClick to button (#97865)
1 parent 80173e7 commit b1ba5a4

File tree

1 file changed

+17
-22
lines changed

1 file changed

+17
-22
lines changed

static/app/views/issueDetails/streamline/header/issueIdBreadcrumb.tsx

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -82,32 +82,27 @@ export function IssueIdBreadcrumb({project, group}: ShortIdBreadcrumbProps) {
8282
size="zero"
8383
borderless
8484
aria-label={t('View issue share settings')}
85+
icon={<IconGlobe size="xs" color="subText" />}
8586
title={tct('This issue has been shared [link:with a public link].', {
8687
link: <ExternalLink href={shareUrl} />,
8788
})}
8889
tooltipProps={{isHoverable: true}}
89-
icon={
90-
<IconGlobe
91-
size="xs"
92-
color="subText"
93-
onClick={() =>
94-
openModal(modalProps => (
95-
<ShareIssueModal
96-
{...modalProps}
97-
organization={organization}
98-
projectSlug={group.project.slug}
99-
groupId={group.id}
100-
onToggle={() =>
101-
trackAnalytics('issue.shared_publicly', {
102-
organization,
103-
})
104-
}
105-
event={null}
106-
hasIssueShare
107-
/>
108-
))
109-
}
110-
/>
90+
onClick={() =>
91+
openModal(modalProps => (
92+
<ShareIssueModal
93+
{...modalProps}
94+
organization={organization}
95+
projectSlug={group.project.slug}
96+
groupId={group.id}
97+
onToggle={() =>
98+
trackAnalytics('issue.shared_publicly', {
99+
organization,
100+
})
101+
}
102+
event={null}
103+
hasIssueShare
104+
/>
105+
))
111106
}
112107
/>
113108
)}

0 commit comments

Comments
 (0)