2020-12-16 04:43:54 +11:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import { FormattedMessage } from 'react-intl';
|
|
|
|
|
|
|
|
export default class GrantPermissionButton extends React.PureComponent {
|
|
|
|
|
|
|
|
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>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|