[UI] Users Modal done

This commit is contained in:
Ruidy Nemausat 2020-04-17 17:23:53 +02:00
parent d80225786f
commit f043ac76ba
2 changed files with 26 additions and 20 deletions

View file

@ -47,7 +47,12 @@ export const Modal: FC<IProps> = ({
const classes = useStyles();
return (
<Dialog open={show} onClose={handleClose} maxWidth="md" fullWidth>
<Dialog
open={show}
onClose={handleClose}
maxWidth="md"
// fullWidth
>
<DialogTitle disableTypography className={classes.root}>
<Typography variant="h6">{name}</Typography>
{handleClose ? (

View file

@ -90,7 +90,7 @@ export const UsersModal: FC<IProps> = ({
handleChange={handleChange}
/>
</Grid>
<Grid container justify="center">
<List dense className={classes.root}>
{allUsers.map((u: User) => (
<ListItem key={u.id}>
@ -109,6 +109,7 @@ export const UsersModal: FC<IProps> = ({
</ListItem>
))}
</List>
</Grid>
</Modal>
);
};