From 12896bd23eeba79884245c1c29fdc568cf21a7fa Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Mon, 14 Mar 2016 08:50:46 -0400
Subject: Converting to Webpack. Stage 1.

---
 web/react/components/file_info_preview.jsx | 56 ------------------------------
 1 file changed, 56 deletions(-)
 delete mode 100644 web/react/components/file_info_preview.jsx

(limited to 'web/react/components/file_info_preview.jsx')

diff --git a/web/react/components/file_info_preview.jsx b/web/react/components/file_info_preview.jsx
deleted file mode 100644
index 30c3fc97f..000000000
--- a/web/react/components/file_info_preview.jsx
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
-// See License.txt for license information.
-
-import * as Utils from '../utils/utils.jsx';
-
-import {defineMessages} from 'mm-intl';
-
-const holders = defineMessages({
-    type: {
-        id: 'file_info_preview.type',
-        defaultMessage: 'File type '
-    },
-    size: {
-        id: 'file_info_preview.size',
-        defaultMessage: 'Size '
-    }
-});
-
-export default function FileInfoPreview({filename, fileUrl, fileInfo, formatMessage}) {
-    // non-image files include a section providing details about the file
-    const infoParts = [];
-
-    if (fileInfo.extension !== '') {
-        infoParts.push(formatMessage(holders.type) + fileInfo.extension.toUpperCase());
-    }
-
-    infoParts.push(formatMessage(holders.size) + Utils.fileSizeToString(fileInfo.size));
-
-    const infoString = infoParts.join(', ');
-
-    const name = decodeURIComponent(Utils.getFileName(filename));
-
-    return (
-        <div className='file-details__container'>
-            <a
-                className={'file-details__preview'}
-                href={fileUrl}
-                target='_blank'
-            >
-                <span className='file-details__preview-helper'/>
-                <img src={Utils.getPreviewImagePath(filename)}/>
-            </a>
-            <div className='file-details'>
-                <div className='file-details__name'>{name}</div>
-                <div className='file-details__info'>{infoString}</div>
-            </div>
-        </div>
-    );
-}
-
-FileInfoPreview.propTypes = {
-    filename: React.PropTypes.string.isRequired,
-    fileUrl: React.PropTypes.string.isRequired,
-    fileInfo: React.PropTypes.object.isRequired,
-    formatMessage: React.PropTypes.func.isRequired
-};
-- 
cgit v1.2.3-1-g7c22

