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-04-08 11:07:55 +00:00
|
|
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
|
|
|
|
|
|
const messages = defineMessages({
|
|
|
|
clear: { id: 'notifications.clear', defaultMessage: 'Clear notifications' }
|
|
|
|
});
|
|
|
|
|
2017-04-21 18:05:35 +00:00
|
|
|
class ClearColumnButton extends React.Component {
|
2017-04-08 11:07:55 +00:00
|
|
|
|
|
|
|
render () {
|
|
|
|
const { intl } = this.props;
|
|
|
|
|
|
|
|
return (
|
2017-04-15 11:27:27 +00:00
|
|
|
<div role='button' title={intl.formatMessage(messages.clear)} className='column-icon column-icon-clear' tabIndex='0' onClick={this.props.onClick}>
|
2017-04-08 11:07:55 +00:00
|
|
|
<i className='fa fa-eraser' />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
2017-04-21 18:05:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ClearColumnButton.propTypes = {
|
|
|
|
onClick: PropTypes.func.isRequired,
|
|
|
|
intl: PropTypes.object.isRequired
|
|
|
|
};
|
2017-02-06 23:06:40 +00:00
|
|
|
|
2017-04-08 11:07:55 +00:00
|
|
|
export default injectIntl(ClearColumnButton);
|