From 7d1cf8ed959831009fe6120953691ee2ebc12a7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Sun, 8 May 2022 23:46:39 +0400 Subject: [PATCH] Create RezoDialog component --- components/rezo/rezo-dialog.js | 82 ++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 components/rezo/rezo-dialog.js diff --git a/components/rezo/rezo-dialog.js b/components/rezo/rezo-dialog.js new file mode 100644 index 0000000..a86ad71 --- /dev/null +++ b/components/rezo/rezo-dialog.js @@ -0,0 +1,82 @@ +import {useState} from 'react' +import PropTypes from 'prop-types' +import Button from '@mui/material/Button' +import Dialog from '@mui/material/Dialog' +import DialogContent from '@mui/material/DialogContent' +import DialogTitle from '@mui/material/DialogTitle' +import useMediaQuery from '@mui/material/useMediaQuery' +import {useTheme} from '@mui/material/styles' +import {Box, Grid, IconButton} from '@mui/material' +import CloseIcon from '@mui/icons-material/Close' + +import {rezoNou} from '../../lib/rezo-lis' + +import KatRezoNou from './kat-rezo-nou' + +function BootstrapDialogTitle(props) { + const {children, onClose, ...other} = props + + return ( + + {children} + {onClose ? ( + theme.palette.grey[500], + }} + onClick={onClose} + > + + + ) : null} + + ) +} + +BootstrapDialogTitle.propTypes = { + children: PropTypes.node, + onClose: PropTypes.func.isRequired, +} + +export default function RezoDialog() { + const [open, setOpen] = useState(false) + const theme = useTheme() + const fullScreen = useMediaQuery(theme.breakpoints.down('md')) + + const handleClickOpen = () => { + setOpen(true) + } + + const handleClose = () => { + setOpen(false) + } + + return ( +
+ + + + Liste de nos réseaux + + + + + {rezoNou.map(({tit, img, soutit, ko, lyen}) => )} + + + + +
+ ) +}