1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-06 22:20:06 +00:00

feat: created modal for adding permission

This commit is contained in:
2022-05-18 00:05:28 +05:00
parent dfbd155711
commit 1413b18508
4 changed files with 245 additions and 32 deletions

View File

@@ -7,19 +7,19 @@ import CloseIcon from '@mui/icons-material/Close'
export interface DialogTitleProps {
id: string
children?: React.ReactNode
onClose: Dispatch<SetStateAction<boolean>>
handleOpen: Dispatch<SetStateAction<boolean>>
}
export const BootstrapDialogTitle = (props: DialogTitleProps) => {
const { children, onClose, ...other } = props
const { children, handleOpen, ...other } = props
return (
<DialogTitle sx={{ m: 0, p: 2 }} {...other}>
{children}
{onClose ? (
{handleOpen ? (
<IconButton
aria-label="close"
onClick={() => onClose(false)}
onClick={() => handleOpen(false)}
sx={{
position: 'absolute',
right: 8,