Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#3097 delete checklist hook #3098

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
#3097 cleaned up modal
Aaryan1203 committed Jan 2, 2025
commit 0c98536621b3f298e96602b3d0338241026f64f4
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ export const AdminChecklist: React.FC<{ parentChecklists: Checklist[]; checklist
<Typography fontSize="2em" fontWeight="bold" color="black">
{checklistName} Checklist
</Typography>
<Grid display="flex" alignItems="center" gap={2}>
<Grid display="flex" alignItems="center">
<IconButton onClick={() => setTasksToDelete(parentChecklists)}>
<RemoveCircleOutlineIcon sx={{ color: 'black' }} />
</IconButton>
@@ -101,7 +101,7 @@ export const AdminChecklist: React.FC<{ parentChecklists: Checklist[]; checklist
open={!!tasksToDelete}
onHide={() => setTasksToDelete(null)}
formId="delete-task-form"
dataType="Task"
dataType="Checklist"
onFormSubmit={() => handleDelete()}
/>
)}