2020-12-15 11:43:54 -06:00
|
|
|
import PropTypes from 'prop-types';
|
2023-05-28 09:38:10 -05:00
|
|
|
import { PureComponent } from 'react';
|
|
|
|
|
2020-12-15 11:43:54 -06:00
|
|
|
import { FormattedMessage } from 'react-intl';
|
|
|
|
|
2023-05-28 07:18:23 -05:00
|
|
|
export default class GrantPermissionButton extends PureComponent {
|
2020-12-15 11:43:54 -06:00
|
|
|
|
|
|
|
static propTypes = {
|
|
|
|
onClick: PropTypes.func.isRequired,
|
|
|
|
};
|
|
|
|
|
|
|
|
render () {
|
|
|
|
return (
|
2023-04-04 09:33:44 -05:00
|
|
|
<button className='text-btn column-header__permission-btn' tabIndex={0} onClick={this.props.onClick}>
|
2020-12-15 11:43:54 -06:00
|
|
|
<FormattedMessage id='notifications.grant_permission' defaultMessage='Grant permission.' />
|
|
|
|
</button>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|