mirror of
https://github.com/D4M13N-D3V/comissions-app-ui.git
synced 2025-03-13 07:45:07 +00:00
61 lines
1.8 KiB
TypeScript
61 lines
1.8 KiB
TypeScript
![]() |
import * as React from 'react';
|
||
|
import Box from '@mui/material/Box';
|
||
|
import Button from '@mui/material/Button';
|
||
|
import Dialog, { DialogProps } from '@mui/material/Dialog';
|
||
|
import DialogActions from '@mui/material/DialogActions';
|
||
|
import DialogContent from '@mui/material/DialogContent';
|
||
|
import DialogContentText from '@mui/material/DialogContentText';
|
||
|
import DialogTitle from '@mui/material/DialogTitle';
|
||
|
import FormControl from '@mui/material/FormControl';
|
||
|
import FormControlLabel from '@mui/material/FormControlLabel';
|
||
|
import InputLabel from '@mui/material/InputLabel';
|
||
|
import MenuItem from '@mui/material/MenuItem';
|
||
|
import Select, { SelectChangeEvent } from '@mui/material/Select';
|
||
|
import Switch from '@mui/material/Switch';
|
||
|
|
||
|
export default function RequestDialog() {
|
||
|
const [open, setOpen] = React.useState(false);
|
||
|
|
||
|
const handleClickOpen = () => {
|
||
|
setOpen(true);
|
||
|
};
|
||
|
|
||
|
const handleClose = () => {
|
||
|
setOpen(false);
|
||
|
};
|
||
|
|
||
|
return (
|
||
|
<React.Fragment>
|
||
|
<Dialog
|
||
|
fullWidth={fullWidth}
|
||
|
maxWidth={maxWidth}
|
||
|
open={open}
|
||
|
onClose={handleClose}
|
||
|
>
|
||
|
<DialogTitle>Optional sizes</DialogTitle>
|
||
|
<DialogContent>
|
||
|
<DialogContentText>
|
||
|
You can set my maximum width and whether to adapt or not.
|
||
|
</DialogContentText>
|
||
|
<Box
|
||
|
noValidate
|
||
|
component="form"
|
||
|
sx={{
|
||
|
display: 'flex',
|
||
|
flexDirection: 'column',
|
||
|
m: 'auto',
|
||
|
width: 'fit-content',
|
||
|
}}
|
||
|
>
|
||
|
<FormControl sx={{ mt: 2, minWidth: 120 }}>
|
||
|
<InputLabel htmlFor="max-width">maxWidth</InputLabel>
|
||
|
</FormControl>
|
||
|
</Box>
|
||
|
</DialogContent>
|
||
|
<DialogActions>
|
||
|
<Button onClick={handleClose}>Close</Button>
|
||
|
</DialogActions>
|
||
|
</Dialog>
|
||
|
</React.Fragment>
|
||
|
);
|
||
|
}
|