You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
725 B
28 lines
725 B
8 years ago
|
import React from 'react';
|
||
8 years ago
|
import PropTypes from 'prop-types';
|
||
8 years ago
|
import { defineMessages, injectIntl } from 'react-intl';
|
||
|
|
||
|
const messages = defineMessages({
|
||
|
clear: { id: 'notifications.clear', defaultMessage: 'Clear notifications' }
|
||
|
});
|
||
|
|
||
8 years ago
|
class ClearColumnButton extends React.Component {
|
||
8 years ago
|
|
||
|
render () {
|
||
|
const { intl } = this.props;
|
||
|
|
||
|
return (
|
||
8 years ago
|
<div role='button' title={intl.formatMessage(messages.clear)} className='column-icon column-icon-clear' tabIndex='0' onClick={this.props.onClick}>
|
||
8 years ago
|
<i className='fa fa-eraser' />
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
8 years ago
|
}
|
||
|
|
||
|
ClearColumnButton.propTypes = {
|
||
|
onClick: PropTypes.func.isRequired,
|
||
|
intl: PropTypes.object.isRequired
|
||
|
};
|
||
8 years ago
|
|
||
8 years ago
|
export default injectIntl(ClearColumnButton);
|