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