-
Notifications
You must be signed in to change notification settings - Fork 61
Description
Describe the bug
While addressing another issue, I encountered an problem within the Control Buttons file. The Snackbar state is not being effectively managed, resulting in the Snackbar component failing to execute. So, Messages such as "tutorial complete," "Updating...," in case of remove step and "Updated..." in case of step title update etc. are not visible.
To Reproduce
Steps to reproduce the behavior:
One way to check is while on completeing the step, a snack msg like tutorial complete at the bottom left.
- Go to 'localhost:5173'
- Click on 'Add new Tutorial'
- Add dummy steps
- Upon completing a step, observe the absence of the expected message (e.g., "tutorial complete") at the bottom left.
Expected behavior
The expected behavior includes displaying messages such as "tutorial complete," "resetting tutorial," and "Updating...." (for Step Removal) or "Updated...." (for Step Title Updation). Additionally, this state management issue of snack persist at multiple locations within the app.
Although the Snackbar component functions correctly in OrgUserCard.
Desktop (please complete the following information):
- OS: Windows
- Browser Chrome
Additional context
An alternative to this could be "toast", but the app already uses "snackbar," which is designed for studying-related features and is likely more suitable for our needs. But we can always change it.