mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 08:28:11 +00:00
custom modal header close icon (#7240)
* seahub custom modal header * add custom modal header * special modal use custom close
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Modal, ModalHeader, ModalBody } from 'reactstrap';
|
||||
import { Modal, ModalBody } from 'reactstrap';
|
||||
import { mediaUrl, gettext, fileServerRoot } from '../../utils/constants';
|
||||
import { seafileAPI } from '../../utils/seafile-api';
|
||||
import { Utils } from '../../utils/utils';
|
||||
import Loading from '../loading';
|
||||
import SeahubModalHeader from '@/components/common/seahub-modal-header';
|
||||
|
||||
const propTypes = {
|
||||
data: PropTypes.object,
|
||||
@@ -120,7 +121,7 @@ class ZipDownloadDialog extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<Modal isOpen={true} toggle={this.toggleDialog}>
|
||||
<ModalHeader toggle={this.toggleDialog}>{gettext('Download')}</ModalHeader>
|
||||
<SeahubModalHeader toggle={this.toggleDialog}>{gettext('Download')}</SeahubModalHeader>
|
||||
<ModalBody>
|
||||
<Content data={this.state} />
|
||||
</ModalBody>
|
||||
|
Reference in New Issue
Block a user