Ability to Manage Custom Commute Methods #278
Labels
difficulty::medium
Challenging tasks
enhancement
New feature or request
frontend
Task must have a front end issue
point::3
Issue will take quite some work and time to resolve.
priority::low
Low priority issue
Is your feature request related to a problem? Please describe.
The Commute Method selector in the visit form uses local storage to store its options (see
usePersistentState
hook), but has no way of modifying them after creating custom options.Describe the solution you'd like
Replace the default Option component for
CreateSelect
with a custom one with an X button on the right so options can be deleted.https://react-select.com/components#replacing-components
Describe alternatives you've considered
Something on the profile page to manage them is also possible if you can keep it consistent with the design.
Additional context
This issue might be harder simply because the react select docs are hell.
The text was updated successfully, but these errors were encountered: