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