Closed piyushkumar079 closed 6 months ago
@piyushkumar079
Great job on the deleteTask() function! However, there's a small improvement we can make. Since handleClick() might involve asynchronous tasks, it's best to use async/await to ensure that handleClick() completes before moving on. Additionally, make sure not to close the modal until handleClick() is done executing.
Keep up the good work!
7
Implementing Custom React Modal
This PR addresses the issue of accidental task deletion by introducing an alert box to confirm task deletion actions. The addition of this confirmation mechanism aims to enhance user experience and prevent frustration caused by unintentional deletions.
Key Changes:
Screenshots/Video:
https://github.com/iiitl/MERN_AUTH/assets/143178077/93e1336c-9b46-41d7-927b-97bcab693c98