2017-05-03 02:04:16 +02:00
|
|
|
import React from 'react';
|
2017-04-21 20:05:35 +02:00
|
|
|
import PropTypes from 'prop-types';
|
2017-06-12 12:26:23 +02:00
|
|
|
import { FormattedMessage } from 'react-intl';
|
2017-04-08 13:07:55 +02:00
|
|
|
|
2018-03-06 07:28:26 +01:00
|
|
|
export default class ClearColumnButton extends React.PureComponent {
|
2017-04-08 13:07:55 +02:00
|
|
|
|
2017-05-12 14:44:10 +02:00
|
|
|
static propTypes = {
|
|
|
|
onClick: PropTypes.func.isRequired,
|
|
|
|
};
|
|
|
|
|
2017-04-08 13:07:55 +02:00
|
|
|
render () {
|
|
|
|
return (
|
2018-09-28 02:11:14 +02:00
|
|
|
<button className='text-btn column-header__setting-btn' tabIndex='0' onClick={this.props.onClick}><i className='fa fa-eraser' /> <FormattedMessage id='notifications.clear' defaultMessage='Clear notifications' /></button>
|
2017-04-08 13:07:55 +02:00
|
|
|
);
|
|
|
|
}
|
2017-05-20 17:31:47 +02:00
|
|
|
|
2017-04-21 20:05:35 +02:00
|
|
|
}
|