mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 10:22:46 +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,7 +1,8 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Button, Modal, ModalHeader, Input, ModalBody, ModalFooter, Form, FormGroup, Label, Alert } from 'reactstrap';
|
||||
import { Button, Modal, Input, ModalBody, ModalFooter, Form, FormGroup, Label, Alert } from 'reactstrap';
|
||||
import { gettext } from '../../utils/constants';
|
||||
import SeahubModalHeader from '@/components/common/seahub-modal-header';
|
||||
|
||||
const propTypes = {
|
||||
wikiPageName: PropTypes.string,
|
||||
@@ -54,7 +55,7 @@ class AddWikiPageDialog extends React.Component {
|
||||
const { handleClose } = this.props;
|
||||
return (
|
||||
<Modal isOpen={true} toggle={handleClose} onOpened={this.onDialogLoad}>
|
||||
<ModalHeader toggle={handleClose}>{gettext('New page')}</ModalHeader>
|
||||
<SeahubModalHeader toggle={handleClose}>{gettext('New page')}</SeahubModalHeader>
|
||||
<ModalBody>
|
||||
<Form>
|
||||
<FormGroup>
|
||||
|
Reference in New Issue
Block a user