Skip to content

Instantly share code, notes, and snippets.

@NishuGoel
Created February 11, 2021 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NishuGoel/99cb3ca22b118c22c8410281b6918667 to your computer and use it in GitHub Desktop.
Save NishuGoel/99cb3ca22b118c22c8410281b6918667 to your computer and use it in GitHub Desktop.
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