From 12896bd23eeba79884245c1c29fdc568cf21a7fa Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 14 Mar 2016 08:50:46 -0400 Subject: Converting to Webpack. Stage 1. --- web/react/components/post_header.jsx | 78 ------------------------------------ 1 file changed, 78 deletions(-) delete mode 100644 web/react/components/post_header.jsx (limited to 'web/react/components/post_header.jsx') diff --git a/web/react/components/post_header.jsx b/web/react/components/post_header.jsx deleted file mode 100644 index 966775dad..000000000 --- a/web/react/components/post_header.jsx +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -import UserProfile from './user_profile.jsx'; -import PostInfo from './post_info.jsx'; -import * as Utils from '../utils/utils.jsx'; - -import Constants from '../utils/constants.jsx'; - -export default class PostHeader extends React.Component { - constructor(props) { - super(props); - this.state = {}; - } - render() { - const post = this.props.post; - - let userProfile = ; - let botIndicator; - - if (post.props && post.props.from_webhook) { - if (post.props.override_username && global.window.mm_config.EnablePostUsernameOverride === 'true') { - userProfile = ( - - ); - } - - botIndicator =
  • {'BOT'}
  • ; - } else if (Utils.isSystemMessage(post)) { - userProfile = ( - - ); - } - - return ( -
      -
    • {userProfile}
    • - {botIndicator} -
    • - -
    • -
    - ); - } -} - -PostHeader.defaultProps = { - post: null, - commentCount: 0, - isLastComment: false, - sameUser: false -}; -PostHeader.propTypes = { - post: React.PropTypes.object.isRequired, - user: React.PropTypes.object, - currentUser: React.PropTypes.object.isRequired, - commentCount: React.PropTypes.number.isRequired, - isLastComment: React.PropTypes.bool.isRequired, - handleCommentClick: React.PropTypes.func.isRequired, - sameUser: React.PropTypes.bool.isRequired -}; -- cgit v1.2.3-1-g7c22