From 410aaab6c5072fddd36d87b51a83d242cc9b59b1 Mon Sep 17 00:00:00 2001
From: Harrison Healey <harrisonmhealey@gmail.com>
Date: Tue, 4 Apr 2017 00:21:33 -0400
Subject: Added SidebarHeaderDropdownButton to stop console warning (#5959)

---
 .../components/sidebar_header_dropdown_button.jsx  | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 webapp/components/sidebar_header_dropdown_button.jsx

(limited to 'webapp/components/sidebar_header_dropdown_button.jsx')

diff --git a/webapp/components/sidebar_header_dropdown_button.jsx b/webapp/components/sidebar_header_dropdown_button.jsx
new file mode 100644
index 000000000..8f08c43c6
--- /dev/null
+++ b/webapp/components/sidebar_header_dropdown_button.jsx
@@ -0,0 +1,29 @@
+// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+import React from 'react';
+
+import Constants from 'utils/constants.jsx';
+
+export default class SidebarHeaderDropdownButton extends React.PureComponent {
+    static propTypes = {
+        bsRole: React.PropTypes.oneOf(['toggle']).isRequired, // eslint-disable-line react/no-unused-prop-types
+        onClick: React.PropTypes.func.isRequired
+    };
+
+    render() {
+        return (
+            <a
+                href='#'
+                className='sidebar-header-dropdown__toggle'
+                onClick={this.props.onClick}
+            >
+                <span
+                    className='sidebar-header-dropdown__icon'
+                    dangerouslySetInnerHTML={{__html: Constants.MENU_ICON}}
+                />
+            </a>
+        );
+    }
+}
+
-- 
cgit v1.2.3-1-g7c22

