import React from 'react'; import PropTypes from 'prop-types'; import { Button, Modal, ModalHeader, ModalFooter, ModalBody } from 'reactstrap'; import { Utils } from '../../utils/utils'; import { gettext } from '../../utils/constants'; const propTypes = { groupName: PropTypes.string.isRequired, changeGroup2Department: PropTypes.func.isRequired, toggleDialog: PropTypes.func.isRequired }; class ChangeGroupDialog extends React.Component { constructor(props) { super(props); this.state = { selectedOption: null }; } submit = () => { this.props.changeGroup2Department(); this.props.toggleDialog(); }; render() { const groupName = '' + Utils.HTMLescape(this.props.groupName) + ''; const msg = gettext('Are you sure to change group {placeholder} to department ?').replace('{placeholder}', groupName); return ( {gettext('Change group to department')}

); } } ChangeGroupDialog.propTypes = propTypes; export default ChangeGroupDialog;