summaryrefslogtreecommitdiffstats
path: root/webapp/components/emoji_picker/components/emoji_picker_category.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/emoji_picker/components/emoji_picker_category.jsx')
-rw-r--r--webapp/components/emoji_picker/components/emoji_picker_category.jsx43
1 files changed, 0 insertions, 43 deletions
diff --git a/webapp/components/emoji_picker/components/emoji_picker_category.jsx b/webapp/components/emoji_picker/components/emoji_picker_category.jsx
deleted file mode 100644
index 66146106b..000000000
--- a/webapp/components/emoji_picker/components/emoji_picker_category.jsx
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
-// See License.txt for license information.
-
-import PropTypes from 'prop-types';
-import React from 'react';
-
-export default class EmojiPickerCategory extends React.Component {
- static propTypes = {
- category: PropTypes.string.isRequired,
- icon: PropTypes.node.isRequired,
- onCategoryClick: PropTypes.func.isRequired,
- selected: PropTypes.bool.isRequired
- }
-
- constructor(props) {
- super(props);
-
- this.handleClick = this.handleClick.bind(this);
- }
-
- handleClick(e) {
- e.preventDefault();
-
- this.props.onCategoryClick(this.props.category);
- }
-
- render() {
- let className = 'emoji-picker__category';
- if (this.props.selected) {
- className += ' emoji-picker__category--selected';
- }
-
- return (
- <a
- className={className}
- href='#'
- onClick={this.handleClick}
- >
- {this.props.icon}
- </a>
- );
- }
-}