2020-07-15 10:13:28 +00:00
|
|
|
import React from 'react';
|
|
|
|
|
2022-10-11 08:24:11 +00:00
|
|
|
import { translate } from '../../../base/i18n/functions';
|
|
|
|
import { connect } from '../../../base/redux/functions';
|
|
|
|
import Dialog from '../../../base/ui/components/web/Dialog';
|
|
|
|
import AbstractGrantModeratorDialog, { abstractMapStateToProps } from '../AbstractGrantModeratorDialog';
|
2020-07-15 10:13:28 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Dialog to confirm a grant moderator action.
|
|
|
|
*/
|
|
|
|
class GrantModeratorDialog extends AbstractGrantModeratorDialog {
|
|
|
|
/**
|
|
|
|
* Implements React's {@link Component#render()}.
|
|
|
|
*
|
|
|
|
* @inheritdoc
|
|
|
|
* @returns {ReactElement}
|
|
|
|
*/
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<Dialog
|
2022-10-11 08:24:11 +00:00
|
|
|
ok = {{ translationKey: 'dialog.Yes' }}
|
2020-07-15 10:13:28 +00:00
|
|
|
onSubmit = { this._onSubmit }
|
2022-10-11 08:24:11 +00:00
|
|
|
titleKey = 'dialog.grantModeratorTitle'>
|
2020-07-15 10:13:28 +00:00
|
|
|
<div>
|
2021-09-10 11:05:16 +00:00
|
|
|
{ this.props.t('dialog.grantModeratorDialog', { participantName: this.props.participantName }) }
|
2020-07-15 10:13:28 +00:00
|
|
|
</div>
|
|
|
|
</Dialog>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
_onSubmit: () => boolean;
|
|
|
|
}
|
|
|
|
|
2021-09-10 11:05:16 +00:00
|
|
|
export default translate(connect(abstractMapStateToProps)(GrantModeratorDialog));
|