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.
 
 
 

34 lines
811 B

import React from 'react';
import Modal from '@material-ui/core/Modal';
import '../App.css';
const Modalbox1 = () => {
const [open, setOpen] = React.useState(false);
const handleOpen = () => {
setOpen(true);
};
const handleClose = () => {
setOpen(false);
};
return (
<div>
<button type="button" onClick={handleOpen}>
<img alt="Broken" src='../Photos/kolvaus1.jpeg' width="250"></img>
</button>
<Modal
open={open}
onClose={handleClose}
>
<div className="Modaldiv">
<img alt="Broken" src='../Photos/kolvaus1.jpeg' width="600"></img>
</div>
</Modal>
</div>
);
};
export default Modalbox1;