Skip to content

Commit 501c7a5

Browse files
ref(js): Remove withOrganization from EventOrGroupExtraDetails (#87658)
1 parent 606cc2c commit 501c7a5

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

static/app/components/eventOrGroupExtraDetails.tsx

+4-10
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,14 @@ import {tct} from 'sentry/locale';
1717
import {space} from 'sentry/styles/space';
1818
import type {Event} from 'sentry/types/event';
1919
import type {Group} from 'sentry/types/group';
20-
import type {Organization} from 'sentry/types/organization';
2120
import {defined} from 'sentry/utils';
2221
import {getTitle} from 'sentry/utils/events';
2322
import useReplayCountForIssues from 'sentry/utils/replayCount/useReplayCountForIssues';
2423
import {projectCanLinkToReplay} from 'sentry/utils/replays/projectSupportsReplay';
25-
import withOrganization from 'sentry/utils/withOrganization';
24+
import useOrganization from 'sentry/utils/useOrganization';
2625

2726
type Props = {
2827
data: Event | Group;
29-
organization: Organization;
3028
showAssignee?: boolean;
3129
showLifetime?: boolean;
3230
};
@@ -52,12 +50,7 @@ function Lifetime({
5250
);
5351
}
5452

55-
function EventOrGroupExtraDetails({
56-
data,
57-
showAssignee,
58-
organization,
59-
showLifetime = true,
60-
}: Props) {
53+
function EventOrGroupExtraDetails({data, showAssignee, showLifetime = true}: Props) {
6154
const {
6255
id,
6356
lastSeen,
@@ -72,6 +65,7 @@ function EventOrGroupExtraDetails({
7265
lifetime,
7366
isUnhandled,
7467
} = data as Group;
68+
const organization = useOrganization();
7569

7670
const issuesPath = `/organizations/${organization.slug}/issues/`;
7771
const {getReplayCountForIssue} = useReplayCountForIssues();
@@ -247,4 +241,4 @@ const Location = styled('div')`
247241
${p => p.theme.overflowEllipsis};
248242
`;
249243

250-
export default withOrganization(EventOrGroupExtraDetails);
244+
export default EventOrGroupExtraDetails;

0 commit comments

Comments
 (0)