2017-04-08 13:07:55 +02:00
|
|
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
|
|
|
|
|
|
const messages = defineMessages({
|
|
|
|
clear: { id: 'notifications.clear', defaultMessage: 'Clear notifications' }
|
|
|
|
});
|
|
|
|
|
2017-02-07 00:06:40 +01:00
|
|
|
const iconStyle = {
|
|
|
|
fontSize: '16px',
|
|
|
|
padding: '15px',
|
|
|
|
position: 'absolute',
|
|
|
|
right: '48px',
|
|
|
|
top: '0',
|
2017-03-02 19:24:12 +01:00
|
|
|
cursor: 'pointer',
|
|
|
|
zIndex: '2'
|
2017-02-07 00:06:40 +01:00
|
|
|
};
|
|
|
|
|
2017-04-08 13:07:55 +02:00
|
|
|
const ClearColumnButton = React.createClass({
|
2017-02-07 00:06:40 +01:00
|
|
|
|
2017-04-08 13:07:55 +02:00
|
|
|
propTypes: {
|
|
|
|
onClick: React.PropTypes.func.isRequired,
|
|
|
|
intl: React.PropTypes.object.isRequired
|
|
|
|
},
|
|
|
|
|
|
|
|
render () {
|
|
|
|
const { intl } = this.props;
|
|
|
|
|
|
|
|
return (
|
2017-04-09 11:35:23 +02:00
|
|
|
<div title={intl.formatMessage(messages.clear)} className='column-icon' tabIndex='0' style={iconStyle} onClick={this.props.onClick}>
|
2017-04-08 13:07:55 +02:00
|
|
|
<i className='fa fa-eraser' />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
})
|
2017-02-07 00:06:40 +01:00
|
|
|
|
2017-04-08 13:07:55 +02:00
|
|
|
export default injectIntl(ClearColumnButton);
|