|
|
@ -6,9 +6,9 @@ import React from 'react';
|
|
|
|
import { LoadingIndicator } from './LoadingIndicator';
|
|
|
|
import { LoadingIndicator } from './LoadingIndicator';
|
|
|
|
import { Message } from './propTypes/Message';
|
|
|
|
import { Message } from './propTypes/Message';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
interface Props {
|
|
|
|
message: Message;
|
|
|
|
message: Message;
|
|
|
|
i18n: (value: string) => string;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const size = {
|
|
|
|
const size = {
|
|
|
@ -30,7 +30,7 @@ const styles = {
|
|
|
|
|
|
|
|
|
|
|
|
export class ImageThumbnail extends React.Component<Props, {}> {
|
|
|
|
export class ImageThumbnail extends React.Component<Props, {}> {
|
|
|
|
public renderContent() {
|
|
|
|
public renderContent() {
|
|
|
|
const { /* i18n, */ message } = this.props;
|
|
|
|
const { message } = this.props;
|
|
|
|
|
|
|
|
|
|
|
|
if (!message.objectURL) {
|
|
|
|
if (!message.objectURL) {
|
|
|
|
return <LoadingIndicator />;
|
|
|
|
return <LoadingIndicator />;
|
|
|
|