diff options
Diffstat (limited to 'webapp/components/bootstrap_span.jsx')
-rw-r--r-- | webapp/components/bootstrap_span.jsx | 22 |
1 files changed, 22 insertions, 0 deletions
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 <span {...props}>{children}</span>; + } +} + +export default BootstrapSpan; |