diff options
Diffstat (limited to 'app/javascript/mastodon/features/notifications/components/clear_column_button.jsx')
-rw-r--r-- | app/javascript/mastodon/features/notifications/components/clear_column_button.jsx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/notifications/components/clear_column_button.jsx b/app/javascript/mastodon/features/notifications/components/clear_column_button.jsx new file mode 100644 index 000000000..b82fd092f --- /dev/null +++ b/app/javascript/mastodon/features/notifications/components/clear_column_button.jsx @@ -0,0 +1,18 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import { FormattedMessage } from 'react-intl'; +import Icon from 'mastodon/components/icon'; + +export default class ClearColumnButton extends React.PureComponent { + + static propTypes = { + onClick: PropTypes.func.isRequired, + }; + + render () { + return ( + <button className='text-btn column-header__setting-btn' tabIndex='0' onClick={this.props.onClick}><Icon id='eraser' /> <FormattedMessage id='notifications.clear' defaultMessage='Clear notifications' /></button> + ); + } + +} |