Remove use of LoadingIndicator

This commit is contained in:
Daniel Gasienica 2018-04-15 02:53:34 -04:00
parent 6d5d0df1c0
commit c3e04ecf87
3 changed files with 1 additions and 9 deletions

View file

@ -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<Props, {}> {
public renderContent() {
const { fileName, fileSize, timestamp } = this.props;
// if (!attachment.data) {
// return <LoadingIndicator />;
// }
return (
<div style={styles.itemContainer} onClick={this.props.onClick}>
<img

View file

@ -121,7 +121,6 @@ export class MediaGallery extends React.Component<Props, State> {
const type = selectedTab;
if (!messages || messages.length === 0) {
// return <LoadingIndicator />;
return null;
}

View file

@ -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<Props, {}> {
const { message } = this.props;
if (!message.objectURL) {
return <LoadingIndicator />;
return null;
}
return (