The code powering m.abunchtell.com https://m.abunchtell.com
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

26 行
660 B

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