From 46fc47e520efeff328db9b125c5339baac7b88e5 Mon Sep 17 00:00:00 2001 From: David Rojas Camaggi Date: Tue, 6 Jun 2017 09:45:36 -0400 Subject: PLT 6416 Add StatusDropdown to profile picture in top left (#6327) (#6418) * PLT-6416 the profile picture is always shown in the top left (#6327) * PLT-6416 Add status icon to profile picture in left sidebar (#6327) * PLT-6416 Add StatusDropdown to profile picture in top left (#6327) * Fixing theme stuff for status picker * PLT-6416 Automatically close status dropdown after selection (#6327) * PLT-6416 Avoid render status dropdown in sidebar if isMobile (#6327) * PLT-6416 Change icon for status change to caret-down (#6327) * PLT-6416 Update visibility of status dropdown after window size (#6327) * PLT-6416 Refactor status dropdown for better mouse usability (#6327) * PLT-6416 Change status dropdown to the redux way (#6327) * PLT-6416 Fix header style of admin sidebar (#6327) --- webapp/components/bootstrap_span.jsx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 webapp/components/bootstrap_span.jsx (limited to 'webapp/components/bootstrap_span.jsx') diff --git a/webapp/components/bootstrap_span.jsx b/webapp/components/bootstrap_span.jsx new file mode 100644 index 000000000..fb425594b --- /dev/null +++ b/webapp/components/bootstrap_span.jsx @@ -0,0 +1,22 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +import React from 'react'; +import PropTypes from 'prop-types'; + +class BootstrapSpan extends React.PureComponent { + + static propTypes = { + children: PropTypes.element + } + + render() { + const {children, ...props} = this.props; + delete props.bsRole; + delete props.bsClass; + + return {children}; + } +} + +export default BootstrapSpan; -- cgit v1.2.3-1-g7c22