1
1
import { Fragment , useContext , useEffect } from 'react' ;
2
2
import styled from '@emotion/styled' ;
3
3
4
- import { EventDataSection } from 'sentry/components/events/eventDataSection' ;
5
4
import { analyzeFramesForRootCause } from 'sentry/components/events/interfaces/analyzeFrames' ;
6
5
import { StackTraceContent } from 'sentry/components/events/interfaces/crashContent/stackTrace' ;
7
6
import NoStackTraceMessage from 'sentry/components/events/interfaces/noStackTraceMessage' ;
@@ -18,6 +17,8 @@ import {defined} from 'sentry/utils';
18
17
import { trackAnalytics } from 'sentry/utils/analytics' ;
19
18
import { QuickTraceContext } from 'sentry/utils/performance/quickTrace/quickTraceContext' ;
20
19
import useProjects from 'sentry/utils/useProjects' ;
20
+ import { FoldSectionKey } from 'sentry/views/issueDetails/streamline/foldSection' ;
21
+ import { InterimSection } from 'sentry/views/issueDetails/streamline/interimSection' ;
21
22
22
23
enum AnrRootCauseAllowlist {
23
24
PERFORMANCE_FILE_IO_MAIN_THREAD_GROUP_TYPE = 1008 ,
@@ -113,9 +114,9 @@ export function AnrRootCause({event, organization}: Props) {
113
114
}
114
115
115
116
return (
116
- < EventDataSection
117
+ < InterimSection
117
118
title = { t ( 'Suspect Root Cause' ) }
118
- type = "suspect-root-cause"
119
+ type = { FoldSectionKey . SUSPECT_ROOT_CAUSE }
119
120
help = { helpText }
120
121
>
121
122
{ potentialAnrRootCause ?. map ( issue => {
@@ -149,7 +150,7 @@ export function AnrRootCause({event, organization}: Props) {
149
150
) ;
150
151
} ) }
151
152
{ organization . features . includes ( 'anr-analyze-frames' ) && renderAnrCulprit ( ) }
152
- </ EventDataSection >
153
+ </ InterimSection >
153
154
) ;
154
155
}
155
156
0 commit comments