diff options
Diffstat (limited to 'app/javascript/flavours/glitch/features/ui/components/column_header.js')
-rw-r--r-- | app/javascript/flavours/glitch/features/ui/components/column_header.js | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/app/javascript/flavours/glitch/features/ui/components/column_header.js b/app/javascript/flavours/glitch/features/ui/components/column_header.js deleted file mode 100644 index 528ff73a6..000000000 --- a/app/javascript/flavours/glitch/features/ui/components/column_header.js +++ /dev/null @@ -1,38 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import classNames from 'classnames'; -import Icon from 'flavours/glitch/components/icon'; - -export default class ColumnHeader extends React.PureComponent { - - static propTypes = { - icon: PropTypes.string, - type: PropTypes.string, - active: PropTypes.bool, - onClick: PropTypes.func, - columnHeaderId: PropTypes.string, - }; - - handleClick = () => { - this.props.onClick(); - } - - render () { - const { icon, type, active, columnHeaderId } = this.props; - let iconElement = ''; - - if (icon) { - iconElement = <Icon id={icon} fixedWidth className='column-header__icon' />; - } - - return ( - <h1 className={classNames('column-header', { active })} id={columnHeaderId || null}> - <button onClick={this.handleClick}> - {iconElement} - {type} - </button> - </h1> - ); - } - -} |