diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-09-06 23:04:13 -0700 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-09-06 23:11:58 -0700 |
commit | d8bd57901e33a7057e26e782e295099ffcc0da89 (patch) | |
tree | e12dfc8cad42b1576756d19d7fbfd82646a009bf /webapp/components/unread_channel_indicator.jsx | |
parent | 7bc8e9a08dfde56387f946fdf5086252aa4d0491 (diff) | |
download | chat-d8bd57901e33a7057e26e782e295099ffcc0da89.tar.gz chat-d8bd57901e33a7057e26e782e295099ffcc0da89.tar.bz2 chat-d8bd57901e33a7057e26e782e295099ffcc0da89.zip |
Removing webapp
Diffstat (limited to 'webapp/components/unread_channel_indicator.jsx')
-rw-r--r-- | webapp/components/unread_channel_indicator.jsx | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/webapp/components/unread_channel_indicator.jsx b/webapp/components/unread_channel_indicator.jsx deleted file mode 100644 index 9462761ac..000000000 --- a/webapp/components/unread_channel_indicator.jsx +++ /dev/null @@ -1,41 +0,0 @@ -import PropTypes from 'prop-types'; - -// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -// Indicator for the left sidebar which indicate if there's unread posts in a channel that is not shown -// because it is either above or below the screen -import React from 'react'; -import Constants from 'utils/constants.jsx'; - -export default function UnreadChannelIndicator(props) { - const unreadIcon = Constants.UNREAD_ICON_SVG; - let displayValue = 'none'; - if (props.show) { - displayValue = 'block'; - } - - return ( - <div - className={'nav-pills__unread-indicator ' + props.extraClass} - style={{display: displayValue}} - > - {props.text} - <span - className='icon icon__unread' - dangerouslySetInnerHTML={{__html: unreadIcon}} - /> - </div> - ); -} - -UnreadChannelIndicator.defaultProps = { - show: false, - extraClass: '', - text: '' -}; -UnreadChannelIndicator.propTypes = { - show: PropTypes.bool, - extraClass: PropTypes.string, - text: PropTypes.object -}; |