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