summaryrefslogtreecommitdiffstats
path: root/webapp/components/unread_channel_indicator.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/unread_channel_indicator.jsx')
-rw-r--r--webapp/components/unread_channel_indicator.jsx41
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
-};