2017-05-03 00:04:16 +00:00
|
|
|
import React from 'react';
|
2017-04-21 18:05:35 +00:00
|
|
|
import PropTypes from 'prop-types';
|
2017-06-12 10:26:23 +00:00
|
|
|
import { FormattedMessage } from 'react-intl';
|
2017-04-08 11:07:55 +00:00
|
|
|
|
2017-06-23 17:36:54 +00:00
|
|
|
export default class ClearColumnButton extends React.Component {
|
2017-04-08 11:07:55 +00:00
|
|
|
|
2017-05-12 12:44:10 +00:00
|
|
|
static propTypes = {
|
|
|
|
onClick: PropTypes.func.isRequired,
|
|
|
|
};
|
|
|
|
|
2017-04-08 11:07:55 +00:00
|
|
|
render () {
|
|
|
|
return (
|
2017-06-12 10:26:23 +00: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 11:07:55 +00:00
|
|
|
);
|
|
|
|
}
|
2017-05-20 15:31:47 +00:00
|
|
|
|
2017-04-21 18:05:35 +00:00
|
|
|
}
|