1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-16 08:16:55 +00:00
seahub/frontend/src/components/dialog/seahub-io-dialog.js
Michael An 08abceb14b
custom modal header close icon (#7240)
* seahub custom modal header

* add custom modal header

* special modal use custom close
2024-12-24 11:20:40 +08:00

41 lines
965 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import { Modal, ModalBody } from 'reactstrap';
import { gettext } from '../../utils/constants';
import Loading from '../loading';
import SeahubModalHeader from '@/components/common/seahub-modal-header';
import '../../css/seahub-io-dialog.css';
const propTypes = {
toggle: PropTypes.func.isRequired,
};
class SeahubIODialog extends React.Component {
toggle = () => {
this.props.toggle();
};
render() {
return (
<Modal className='seahub-io-dialog' isOpen={true} toggle={this.toggle}>
<SeahubModalHeader toggle={this.toggle}>
{gettext('Exporting')}
</SeahubModalHeader>
<ModalBody>
<>
<Loading/>
<div className="seahub-io-dialog-parsing-text">{gettext('Exporting...')}</div>
</>
</ModalBody>
</Modal>
);
}
}
SeahubIODialog.propTypes = propTypes;
export default SeahubIODialog;