mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-19 09:37:51 +00:00
40 lines
893 B
JavaScript
40 lines
893 B
JavaScript
|
import React from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import { Modal, ModalBody, ModalHeader } from 'reactstrap';
|
||
|
import { gettext } from '../../utils/constants';
|
||
|
import Loading from '../loading';
|
||
|
|
||
|
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}>
|
||
|
<ModalHeader toggle={this.toggle}>
|
||
|
{gettext('Exporting')}
|
||
|
</ModalHeader>
|
||
|
<ModalBody>
|
||
|
<>
|
||
|
<Loading/>
|
||
|
<div className="seahub-io-dialog-parsing-text">{gettext('Exporting...')}</div>
|
||
|
</>
|
||
|
</ModalBody>
|
||
|
</Modal>
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
SeahubIODialog.propTypes = propTypes;
|
||
|
|
||
|
export default SeahubIODialog;
|