TinyForest system front-end written with ReactJS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
937 B

4 years ago
4 years ago
  1. import React from 'react';
  2. import Modal from '@material-ui/core/Modal';
  3. import '../App.css';
  4. const Modalbox12 = props => {
  5. const [open, setOpen] = React.useState(false);
  6. const handleOpen = () => {
  7. setOpen(true);
  8. };
  9. const handleClose = () => {
  10. setOpen(false);
  11. };
  12. return (
  13. <div>
  14. <button type="button" onClick={handleOpen}>
  15. <img alt="Broken" src='../Photos/valkosipulivk3.jpg' width='80%'></img>
  16. </button>
  17. <Modal
  18. open={open}
  19. onClose={handleClose}
  20. >
  21. <div className="Modaldiv">
  22. <img alt="Broken" src='../Photos/valkosipulivk3.jpg' height="500"></img>
  23. <p style={{background:'black', color:'gray', width:376}}>Valkosipulin kasvu viikko 3</p>
  24. </div>
  25. </Modal>
  26. </div>
  27. );
  28. };
  29. export default Modalbox12;