@@ -5,7 +5,7 @@ import styled, {css} from 'react-emotion';
55import classNames from 'classnames' ;
66import { capitalize } from 'lodash' ;
77
8- import { Metadata } from 'app/sentryTypes' ;
8+ import SentryTypes from 'app/sentryTypes' ;
99import EventOrGroupTitle from 'app/components/eventOrGroupTitle' ;
1010import Tooltip from 'app/components/tooltip' ;
1111import { getMessage , getLocation } from 'app/utils/events' ;
@@ -17,23 +17,7 @@ class EventOrGroupHeader extends React.Component {
1717 static propTypes = {
1818 params : PropTypes . object ,
1919 /** Either an issue or event **/
20- data : PropTypes . shape ( {
21- id : PropTypes . string ,
22- level : PropTypes . string ,
23- type : PropTypes . oneOf ( [
24- 'error' ,
25- 'csp' ,
26- 'hpkp' ,
27- 'expectct' ,
28- 'expectstaple' ,
29- 'default' ,
30- 'transaction' ,
31- ] ) . isRequired ,
32- title : PropTypes . string ,
33- metadata : Metadata ,
34- groupID : PropTypes . string ,
35- culprit : PropTypes . string ,
36- } ) ,
20+ data : PropTypes . oneOfType ( [ SentryTypes . Event , SentryTypes . Group ] ) ,
3721 includeLink : PropTypes . bool ,
3822 hideIcons : PropTypes . bool ,
3923 hideLevel : PropTypes . bool ,
0 commit comments