Skip to content

fix : added replaced alert calls with toast notifications in RoutineCard - #1990

Open
tmdeveloper007 wants to merge 1 commit into
aryandas2911:mainfrom
tmdeveloper007:fix/1985-routinecard-toast
Open

fix : added replaced alert calls with toast notifications in RoutineCard#1990
tmdeveloper007 wants to merge 1 commit into
aryandas2911:mainfrom
tmdeveloper007:fix/1985-routinecard-toast

Conversation

@tmdeveloper007

Copy link
Copy Markdown

Summary of What Has Been Done

Replaced 4 browser alert() calls in RoutineCard.jsx with the existing inline toast notification system. Added isToastError state to distinguish error toasts (red dot) from success toasts (green dot).

Changes Made

  • Added isToastError state variable
  • Updated triggerToast to accept isError parameter
  • Updated toast UI to show red dot for errors
  • Replaced all 4 alert calls with triggerToast(..., true)

Impact it Made

Eliminates blocking browser alert dialogs for error cases.

Closes #1985

Note: Please assign this PR to the tmdeveloper007 account.

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.

fix : replace alert calls with toast notifications in RoutineCard

1 participant