2017-05-02 19:04:16 -05:00
|
|
|
import React from 'react';
|
2017-04-21 13:05:35 -05:00
|
|
|
import PropTypes from 'prop-types';
|
2017-06-12 05:26:23 -05:00
|
|
|
import { FormattedMessage } from 'react-intl';
|
2019-09-09 09:41:41 -05:00
|
|
|
import Icon from 'flavours/glitch/components/icon';
|
2017-04-08 06:07:55 -05:00
|
|
|
|
2017-06-23 12:36:54 -05:00
|
|
|
export default class ClearColumnButton extends React.Component {
|
2017-04-08 06:07:55 -05:00
|
|
|
|
2017-05-12 07:44:10 -05:00
|
|
|
static propTypes = {
|
|
|
|
onClick: PropTypes.func.isRequired,
|
|
|
|
};
|
|
|
|
|
2017-04-08 06:07:55 -05:00
|
|
|
render () {
|
|
|
|
return (
|
2019-09-09 09:41:41 -05:00
|
|
|
<button className='text-btn column-header__setting-btn' tabIndex='0' onClick={this.props.onClick}><Icon id='eraser' /> <FormattedMessage id='notifications.clear' defaultMessage='Clear notifications' /></button>
|
2017-04-08 06:07:55 -05:00
|
|
|
);
|
|
|
|
}
|
2017-05-20 10:31:47 -05:00
|
|
|
|
2017-04-21 13:05:35 -05:00
|
|
|
}
|