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/time_since.jsx | 66 -------------------------------------
 1 file changed, 66 deletions(-)
 delete mode 100644 web/react/components/time_since.jsx

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

diff --git a/web/react/components/time_since.jsx b/web/react/components/time_since.jsx
deleted file mode 100644
index d5891cc57..000000000
--- a/web/react/components/time_since.jsx
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
-// See License.txt for license information.
-
-import Constants from '../utils/constants.jsx';
-import * as Utils from '../utils/utils.jsx';
-
-import {FormattedRelative, FormattedDate} from 'mm-intl';
-
-var Tooltip = ReactBootstrap.Tooltip;
-var OverlayTrigger = ReactBootstrap.OverlayTrigger;
-
-export default class TimeSince extends React.Component {
-    componentDidMount() {
-        this.intervalId = setInterval(() => {
-            this.forceUpdate();
-        }, Constants.TIME_SINCE_UPDATE_INTERVAL);
-    }
-    componentWillUnmount() {
-        clearInterval(this.intervalId);
-    }
-    render() {
-        if (this.props.sameUser) {
-            return (
-                <time className='post__time'>
-                    {Utils.displayTimeFormatted(this.props.eventTime)}
-                </time>
-            );
-        }
-
-        const tooltip = (
-            <Tooltip id={'time-since-tooltip-' + this.props.eventTime}>
-                <FormattedDate
-                    value={this.props.eventTime}
-                    month='long'
-                    day='numeric'
-                    year='numeric'
-                    hour12={true}
-                    hour='numeric'
-                    minute='2-digit'
-                />
-            </Tooltip>
-        );
-
-        return (
-            <OverlayTrigger
-                delayShow={Constants.OVERLAY_TIME_DELAY}
-                placement='top'
-                overlay={tooltip}
-            >
-                <time className='post__time'>
-                    <FormattedRelative value={this.props.eventTime}/>
-                </time>
-            </OverlayTrigger>
-        );
-    }
-}
-
-TimeSince.defaultProps = {
-    eventTime: 0,
-    sameUser: false
-};
-
-TimeSince.propTypes = {
-    eventTime: React.PropTypes.number.isRequired,
-    sameUser: React.PropTypes.bool
-};
-- 
cgit v1.2.3-1-g7c22

