-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ORV2-2834 - FE: Update: Change Start Application Menu and Steps #1635
base: main
Are you sure you want to change the base?
Conversation
Quality Gate passed for 'onroutebc dops'Issues Measures |
Quality Gate passed for 'onroutebc_policy'Issues Measures |
Quality Gate passed for 'onroutebc_scheduler'Issues Measures |
} | ||
> | ||
<Button | ||
className={`start-application-action__input ${open && "start-application-action__input--open"} ${isError && "start-application-action__input--error"}`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This className seems too long, you might want to extract it out into a variable and assign the variable here instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also please use the proper ternary syntax rather than the "&&" approach, especially here in string interpolations (ie. use open ? "..." : ""
instead of open && "..."
)
open={open} | ||
slotProps={{ | ||
paper: { | ||
className: `start-application-action__menu-container ${open && "start-application-action__menu-container--open"}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use proper ternary syntax here, and also consider extracting this long className into a variable
Start Application | ||
</Button> | ||
</div> | ||
{isError && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use ternary operator here instead (ie. isError ? (<span>...</span>) : null
)
Description
Implements the nested dropdown menu for selecting a permit application type.
Fixes #ORV2-2834
Type of change
Please delete options that are not relevant.
Checklist
Thanks for the PR!
Deployments, as required, will be available below:
Please create PRs in draft mode. Mark as ready to enable:
After merge, new images are promoted to: