Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import PropTypes from 'prop-types';
  3. import './ModalWindowTable.css';
  4.  
  5. export class ModalWindowTable extends Component {
  6. render() {
  7. if(!this.props.show) {
  8. return null;
  9. }
  10.  
  11. return (
  12. <div className="backdrop">
  13. <div className="modal">
  14. <div className="row"></div>
  15. <div className="row"></div>
  16. <div className="row"></div>
  17. </div>
  18. <div className="footer">
  19. <button onClick={this.props.onClose}>
  20. Close
  21. </button>
  22. </div>
  23. </div>
  24. );
  25. }
  26. propTypes = {
  27. onClose: PropTypes.func.isRequired,
  28. show: PropTypes.bool
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement