Skip to content

feat: add toast notifications for API responses#41

Open
Shoaib96978 wants to merge 2 commits into
mainfrom
feature/toast-integration
Open

feat: add toast notifications for API responses#41
Shoaib96978 wants to merge 2 commits into
mainfrom
feature/toast-integration

Conversation

@Shoaib96978

Copy link
Copy Markdown
Collaborator

Added react-hot-toast to display success and error messages returned from the backend API across the application.

📦 New Package

react-hot-toast — lightweight toast notification library

📝 Changes

Installed react-hot-toast package
Created reusable toastService at src/lib/toast.service.ts
Handles both success messages and Axios error messages in one place
Wired up onSuccess and onError in case & document mutation hooks

⚙️ Setup
After pulling this branch, run:
bashnpm install
No other setup required.

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.

1 participant