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.

19 lines
519 B

  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import { FormattedMessage } from 'react-intl';
  4. export default class GrantPermissionButton extends React.PureComponent {
  5. static propTypes = {
  6. onClick: PropTypes.func.isRequired,
  7. };
  8. render () {
  9. return (
  10. <button className='text-btn column-header__permission-btn' tabIndex='0' onClick={this.props.onClick}>
  11. <FormattedMessage id='notifications.grant_permission' defaultMessage='Grant permission.' />
  12. </button>
  13. );
  14. }
  15. }