diff --git a/ts/components/conversation/media-gallery/DocumentListItem.tsx b/ts/components/conversation/media-gallery/DocumentListItem.tsx index 15332ed24d5..639fd4b341d 100644 --- a/ts/components/conversation/media-gallery/DocumentListItem.tsx +++ b/ts/components/conversation/media-gallery/DocumentListItem.tsx @@ -6,8 +6,6 @@ import React from 'react'; import moment from 'moment'; import formatFileSize from 'filesize'; -// import { LoadingIndicator } from './LoadingIndicator'; - interface Props { fileName?: string; fileSize?: number; @@ -57,10 +55,6 @@ export class DocumentListItem extends React.Component { public renderContent() { const { fileName, fileSize, timestamp } = this.props; - // if (!attachment.data) { - // return ; - // } - return (
{ const type = selectedTab; if (!messages || messages.length === 0) { - // return ; return null; } diff --git a/ts/components/conversation/media-gallery/MediaGridItem.tsx b/ts/components/conversation/media-gallery/MediaGridItem.tsx index 79cb0735fc5..1dd5aeb394c 100644 --- a/ts/components/conversation/media-gallery/MediaGridItem.tsx +++ b/ts/components/conversation/media-gallery/MediaGridItem.tsx @@ -3,7 +3,6 @@ */ import React from 'react'; -import { LoadingIndicator } from './LoadingIndicator'; import { Message } from './propTypes/Message'; interface Props { @@ -33,7 +32,7 @@ export class MediaGridItem extends React.Component { const { message } = this.props; if (!message.objectURL) { - return ; + return null; } return (