You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- import useHistory
- add `handleDelete` function:
- make call to `delete(/tasks/${id}/)`
- use History to go back to previous page after deletion
- pass the `handleDelete` function to `MoreDropdown` (in `Task.js`)
- check that task instance is deleted from API
As a Logged-in User,
I want to delete tasks owned by me or assigned to me,
so that remove tasks that are not needed or were created in error
Acceptance Criteria
Tasks
useHistory
handleDelete
function:delete(
/tasks/${id}/)
handleDelete
function toMoreDropdown
(inTask.js
)The text was updated successfully, but these errors were encountered: