Created
February 11, 2021 14:06
-
-
Save NishuGoel/99cb3ca22b118c22c8410281b6918667 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const SchedulerTable = (props: IProps) => { | |
const [jobItem, showJobItem] = useState(false); | |
const classes = useStyles(); | |
const [anchorEl, setAnchor] = useState(null); | |
const [jobs, setJobs] = useState([] as IJobs[]); | |
const [loading, setLoading] = useState(true); | |
const { enqueueSnackbar } = useSnackbar(); | |
const [jobId, setJobId] = useState(0); | |
const handleOpen = (event: any, id: number) => { | |
setJobId(id); | |
setAnchor(event.currentTarget); | |
}; | |
const handleClose = () => { | |
setAnchor(null); | |
}; | |
const onItemClose = () => { | |
showJobItem(false); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment