iiitl / MERN_AUTH

MERN Task with auth application
0 stars 8 forks source link

#7 Implement Custom Modal for Confirming Task Deletion #24

Closed piyushkumar079 closed 6 months ago

piyushkumar079 commented 6 months ago

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

Yash7426 commented 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!