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.
 
 
 

36 lines
935 B

import React from 'react';
import Modal from '@material-ui/core/Modal';
import '../App.css';
const Modalbox8 = props => {
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/valkosipulivk2.jpg' width='80%'></img>
</button>
<Modal
open={open}
onClose={handleClose}
>
<div className="Modaldiv">
<img alt="Broken" src='../Photos/valkosipulivk2.jpg' height="500"></img>
<p style={{background:'black', color:'gray', width:360}}>Valkosipulin kasvu viikko 2</p>
</div>
</Modal>
</div>
);
};
export default Modalbox8;