ArchiveCreateModal.jsx 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import { Modal, ModalHeader, ModalBody } from 'reactstrap';
  4. const ArchiveCreateModal = (props) => {
  5. // const [isArchiveCreateModalShown, setIsOpenShareLinkForm] = useState(false);
  6. return (
  7. <Modal size="lg" isOpen={props.isOpen} toggle={props.onClose}>
  8. <ModalHeader tag="h4" toggle={props.onClose} className="bg-primary text-Light">
  9. アーカイブを作成する
  10. </ModalHeader>
  11. <ModalBody>
  12. 試作
  13. </ModalBody>
  14. </Modal>
  15. );
  16. };
  17. // export default class ArchiveCreateModal extends React.PureComponet {
  18. // constructor(props) {
  19. // super(props);
  20. // this.state = {
  21. // show: false,
  22. // isIncludeComment: false,
  23. // isIncludeFile: false,
  24. // isCreateAllSubordinatedPage: false,
  25. // };
  26. // this.show = this.show.bind(this);
  27. // this.cancel = this.cancel.bind(this);
  28. // this.save = this.save.bind(this);
  29. // }
  30. // show() {
  31. // }
  32. // cancel() {
  33. // this.hide();
  34. // }
  35. // hide() {
  36. // this.setState({ show: false });
  37. // }
  38. // save() {
  39. // }
  40. // render() {
  41. // return (
  42. // <Modal isOpen={this.state.show} toggle={this.cancel} size="lg">
  43. // <ModalHeader tag="h4" toggle={this.cancel} className="bg-primary text-light">
  44. // アーカイブ作成
  45. // </ModalHeader>
  46. // <ModalBody className="container">
  47. // <div className="custom-control">
  48. // <button className="btn btn-outline-secondary d-block mx-auto px-5 mb-3" type="button">アーカイブを作成する</button>
  49. // <input className="custom-control-input" type="checkbox" checked={this.state.isIncludeComment} />
  50. // <label className="custom-control-label" onClick="this.">コメントもダウンロードする</label>
  51. // <input className="custom-control-input" type="checkbox" checked={this.isIncludeFile} />
  52. // <label className="custom-control-label" onClick="this.">添付ファイルもダウンロードする</label>
  53. // <input className="custom-control-input" type="checkbox" checked={this.isCreateAllSubordinatedPage} />
  54. // <label className="custom-control-label" onClick="this.">配下ページもダウンロードする</label>
  55. // </div>
  56. // </ModalBody>
  57. // </Modal>
  58. // );
  59. // }
  60. ArchiveCreateModal.propTypes = {
  61. isOpen: PropTypes.bool.isRequired,
  62. onClose: PropTypes.func.isRequired,
  63. };
  64. export default ArchiveCreateModal;