Remove use of LoadingIndicator
This commit is contained in:
@@ -6,8 +6,6 @@ import React from 'react';
|
|||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import formatFileSize from 'filesize';
|
import formatFileSize from 'filesize';
|
||||||
|
|
||||||
// import { LoadingIndicator } from './LoadingIndicator';
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
fileName?: string;
|
fileName?: string;
|
||||||
fileSize?: number;
|
fileSize?: number;
|
||||||
@@ -57,10 +55,6 @@ export class DocumentListItem extends React.Component<Props, {}> {
|
|||||||
public renderContent() {
|
public renderContent() {
|
||||||
const { fileName, fileSize, timestamp } = this.props;
|
const { fileName, fileSize, timestamp } = this.props;
|
||||||
|
|
||||||
// if (!attachment.data) {
|
|
||||||
// return <LoadingIndicator />;
|
|
||||||
// }
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={styles.itemContainer} onClick={this.props.onClick}>
|
<div style={styles.itemContainer} onClick={this.props.onClick}>
|
||||||
<img
|
<img
|
||||||
|
@@ -121,7 +121,6 @@ export class MediaGallery extends React.Component<Props, State> {
|
|||||||
const type = selectedTab;
|
const type = selectedTab;
|
||||||
|
|
||||||
if (!messages || messages.length === 0) {
|
if (!messages || messages.length === 0) {
|
||||||
// return <LoadingIndicator />;
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -3,7 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { LoadingIndicator } from './LoadingIndicator';
|
|
||||||
import { Message } from './propTypes/Message';
|
import { Message } from './propTypes/Message';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
@@ -33,7 +32,7 @@ export class MediaGridItem extends React.Component<Props, {}> {
|
|||||||
const { message } = this.props;
|
const { message } = this.props;
|
||||||
|
|
||||||
if (!message.objectURL) {
|
if (!message.objectURL) {
|
||||||
return <LoadingIndicator />;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Reference in New Issue
Block a user