]>
cat aescling's git repositories - mastodon.git/blob - app/javascript/mastodon/features/ui/components/column_header.js
1 import React
from 'react';
2 import PropTypes
from 'prop-types';
4 export default class ColumnHeader
extends React
.PureComponent
{
7 icon: PropTypes
.string
,
8 type: PropTypes
.string
,
9 active: PropTypes
.bool
,
10 onClick: PropTypes
.func
,
11 columnHeaderId: PropTypes
.string
,
19 const { type
, active
, columnHeaderId
} = this.props
;
23 if (this.props
.icon
) {
24 icon
= <i className
={`fa fa-fw fa-${this.props.icon} column-header__icon`} />;
28 <div role
='heading' tabIndex
='0' className
={`column-header ${active ? 'active' : ''}`} onClick
={this.handleClick
} id
={columnHeaderId
|| null}>
This page took 0.076408 seconds and 4 git commands to generate.