1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-15 16:04:01 +00:00
seahub/frontend/src/components/dialog/tip-dailog.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

25 lines
754 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import { Modal, ModalBody } from 'reactstrap';
import SeahubModalHeader from '@/components/common/seahub-modal-header';
import Loading from '../loading';
function TipDialog({ modalTitle, modalTip }) {
return (
<Modal isOpen={true}>
<SeahubModalHeader>{modalTitle}</SeahubModalHeader>
<ModalBody className='d-flex flex-column justify-content-center align-terms-center' style={{ height: '180px' }}>
<Loading />
<div className='d-flex justify-content-center mt-6'>{modalTip}</div>
</ModalBody>
</Modal>
);
}
TipDialog.propTypes = {
modalTitle: PropTypes.string.isRequired,
modalTip: PropTypes.string.isRequired,
};
export default TipDialog;