Compare commits

...

2 commits

Author SHA1 Message Date
Eddi3_As
b4d981527c added todo test 2025-03-28 22:57:45 -04:00
Eddi3_As
3071e2e26c missing file 2025-03-28 22:56:39 -04:00
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1 @@
//TODO TESTS

View file

@ -0,0 +1,44 @@
import React, { useState } from "react";
import {
Button,
IconButton,
Dialog,
DialogContent,
} from "@mui/material";
import CloseIcon from "@mui/icons-material/Close";
import ImageGallery from "../ImageGallery";
const ImageGalleryModal: React.FC = () => {
const [open, setOpen] = useState<boolean>(false);
const handleOpen = () => setOpen(true);
const handleClose = () => setOpen(false);
return (
<>
<Button variant="contained" color="primary" onClick={handleOpen}>
Open Image Manager
</Button>
<Dialog open={open} onClose={handleClose} maxWidth="md" fullWidth>
<DialogContent sx={{ display: "flex", flexDirection: "column", alignItems: "center", py: 3 }}>
<IconButton
onClick={handleClose}
color="primary"
sx={{
position: "absolute",
right: 8,
top: 8,
zIndex: 1,
}}
>
<CloseIcon />
</IconButton>
<ImageGallery />
</DialogContent>
</Dialog>
</>
);
};
export default ImageGalleryModal;