#508 Re-Usable dashboard toggle button #518
No reviewers
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked, waiting for further changes
bug
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
help wanted
invalid
low priority
needs input
needs review
project documentation
question
research
reviewed
script
security
SQL
style
testing
topLevel
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K!518
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "#508-break-out-toggle-from-dashboard-with-css"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Broke out the toggle switch into its own component with style sheet.
Button supports custom state names (e.g. ON and OFF) and callback assignment, via parameters.
Created ToggleButton folder containing ToggleButton.js and ToggleButton.module.css.
Updated /components/index.js to expose new ToggleButton for import.
Integrated it with Dashboard.js.
Removed toggle switch entries from Dashboard.module.css. (!Please double-check that this change does not unintentionally break anything!).
Review on #518
Whats done
Reviewed #518
Tested on Windows 11 using Firefox
Inspected following files: Dashboard.js, Dasboard.module.js, ToggleButton.js, ToggleButton.module.js.
Conclusion
The review seems to have been provided in a good way, this will be merged.