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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user