Skip to content

Conversation

PraagnaVaishnavi
Copy link

What’s Changed

  • Added a toast message to notify users when a category is successfully deleted.
  • Improves UX by providing feedback upon deletion.

File Updated

  • AllCategories.js:
    • Added react-toastify usage for delete success.
    • Made small formatting improvements.

Why?

Previously, deleting a category only logged the result to console. This change gives real-time visual feedback to the admin, making the action clear and user-friendly.

Tested locally. Works as expected.

Copy link
Owner

@hasan-py hasan-py left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing. But in this project we used notistack for toast. Could you consider that one to here instead of react toastify?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants