@@ -17,16 +17,14 @@ import {tct} from 'sentry/locale';
17
17
import { space } from 'sentry/styles/space' ;
18
18
import type { Event } from 'sentry/types/event' ;
19
19
import type { Group } from 'sentry/types/group' ;
20
- import type { Organization } from 'sentry/types/organization' ;
21
20
import { defined } from 'sentry/utils' ;
22
21
import { getTitle } from 'sentry/utils/events' ;
23
22
import useReplayCountForIssues from 'sentry/utils/replayCount/useReplayCountForIssues' ;
24
23
import { projectCanLinkToReplay } from 'sentry/utils/replays/projectSupportsReplay' ;
25
- import withOrganization from 'sentry/utils/withOrganization ' ;
24
+ import useOrganization from 'sentry/utils/useOrganization ' ;
26
25
27
26
type Props = {
28
27
data : Event | Group ;
29
- organization : Organization ;
30
28
showAssignee ?: boolean ;
31
29
showLifetime ?: boolean ;
32
30
} ;
@@ -52,12 +50,7 @@ function Lifetime({
52
50
) ;
53
51
}
54
52
55
- function EventOrGroupExtraDetails ( {
56
- data,
57
- showAssignee,
58
- organization,
59
- showLifetime = true ,
60
- } : Props ) {
53
+ function EventOrGroupExtraDetails ( { data, showAssignee, showLifetime = true } : Props ) {
61
54
const {
62
55
id,
63
56
lastSeen,
@@ -72,6 +65,7 @@ function EventOrGroupExtraDetails({
72
65
lifetime,
73
66
isUnhandled,
74
67
} = data as Group ;
68
+ const organization = useOrganization ( ) ;
75
69
76
70
const issuesPath = `/organizations/${ organization . slug } /issues/` ;
77
71
const { getReplayCountForIssue} = useReplayCountForIssues ( ) ;
@@ -247,4 +241,4 @@ const Location = styled('div')`
247
241
${ p => p . theme . overflowEllipsis } ;
248
242
` ;
249
243
250
- export default withOrganization ( EventOrGroupExtraDetails ) ;
244
+ export default EventOrGroupExtraDetails ;
0 commit comments