@@ -13,7 +13,7 @@ import FileSize from 'app/components/fileSize';
1313import { PanelTable } from 'app/components/panels' ;
1414import { t } from 'app/locale' ;
1515import overflowEllipsis from 'app/styles/overflowEllipsis' ;
16- import { EventAttachment } from 'app/types' ;
16+ import { IssueAttachment } from 'app/types' ;
1717import { Event } from 'app/types/event' ;
1818import AttachmentUrl from 'app/utils/attachmentUrl' ;
1919import withApi from 'app/utils/withApi' ;
@@ -26,8 +26,8 @@ type Props = {
2626 orgId : string ;
2727 projectId : string ;
2828 location : Location ;
29- attachments : EventAttachment [ ] ;
30- onDeleteAttachment : ( attachmentId : EventAttachment [ 'id' ] ) => void ;
29+ attachments : IssueAttachment [ ] ;
30+ onDeleteAttachment : ( attachmentId : IssueAttachment [ 'id' ] ) => void ;
3131} ;
3232
3333type State = {
@@ -41,7 +41,7 @@ class EventAttachments extends React.Component<Props, State> {
4141 attachmentPreviews : { } ,
4242 } ;
4343
44- getInlineAttachmentRenderer ( attachment : EventAttachment ) {
44+ getInlineAttachmentRenderer ( attachment : IssueAttachment ) {
4545 switch ( attachment . mimetype ) {
4646 case 'text/plain' :
4747 return attachment . size > 0 ? LogFileViewer : undefined ;
@@ -61,15 +61,15 @@ class EventAttachments extends React.Component<Props, State> {
6161 }
6262 }
6363
64- hasInlineAttachmentRenderer ( attachment : EventAttachment ) : boolean {
64+ hasInlineAttachmentRenderer ( attachment : IssueAttachment ) : boolean {
6565 return ! ! this . getInlineAttachmentRenderer ( attachment ) ;
6666 }
6767
68- attachmentPreviewIsOpen = ( attachment : EventAttachment ) => {
68+ attachmentPreviewIsOpen = ( attachment : IssueAttachment ) => {
6969 return ! ! this . state . attachmentPreviews [ attachment . id ] ;
7070 } ;
7171
72- renderInlineAttachment ( attachment : EventAttachment ) {
72+ renderInlineAttachment ( attachment : IssueAttachment ) {
7373 const Component = this . getInlineAttachmentRenderer ( attachment ) ;
7474 if ( ! Component || ! this . attachmentPreviewIsOpen ( attachment ) ) {
7575 return null ;
@@ -86,7 +86,7 @@ class EventAttachments extends React.Component<Props, State> {
8686 ) ;
8787 }
8888
89- togglePreview ( attachment : EventAttachment ) {
89+ togglePreview ( attachment : IssueAttachment ) {
9090 this . setState ( ( { attachmentPreviews} ) => ( {
9191 attachmentPreviews : {
9292 ...attachmentPreviews ,
0 commit comments