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