The code powering m.abunchtell.com https://m.abunchtell.com
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.
 
 
 
 

27 lines
698 B

  1. import PropTypes from 'prop-types';
  2. import { defineMessages, injectIntl } from 'react-intl';
  3. const messages = defineMessages({
  4. clear: { id: 'notifications.clear', defaultMessage: 'Clear notifications' }
  5. });
  6. class ClearColumnButton extends React.Component {
  7. render () {
  8. const { intl } = this.props;
  9. return (
  10. <div role='button' title={intl.formatMessage(messages.clear)} className='column-icon column-icon-clear' tabIndex='0' onClick={this.props.onClick}>
  11. <i className='fa fa-eraser' />
  12. </div>
  13. );
  14. }
  15. }
  16. ClearColumnButton.propTypes = {
  17. onClick: PropTypes.func.isRequired,
  18. intl: PropTypes.object.isRequired
  19. };
  20. export default injectIntl(ClearColumnButton);