-
Notifications
You must be signed in to change notification settings - Fork 3
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
chore: refactor modal opening in project area page #3211
chore: refactor modal opening in project area page #3211
Conversation
a176205
to
73a4ca1
Compare
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.
Looks good, just some nits about naming convention
@@ -379,6 +379,42 @@ const ApplicationForm: React.FC<Props> = ({ | |||
const isOtherFundingSourcesPage = sectionName === 'otherFundingSources'; | |||
const isReviewPage = sectionName === 'review'; | |||
|
|||
const allZoneIntake = |
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.
Since this is a bool, we should rename this to isAllZoneIntake
const allZoneIntake = | |
const isAllZoneIntake = |
firstNationsLed: boolean, | ||
nullAllowed: boolean = true |
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.
Same here that bools should use the is
prefix
firstNationsLed: boolean, | |
nullAllowed: boolean = true | |
isFirstNationsLed: boolean, | |
isNullAllowed: boolean = true |
// display new modal saying | ||
// Invalid selection. You have indicated that this project is not led or supported by First Nations, therefore, you may only choose from zones 1,2,3 or 6. | ||
setProjectAreaModalType('invalid-geographic-area'); | ||
const projectAreaAccepted = isZoneSelectionValid( |
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.
Should stick to the is
prefix for booleans
const projectAreaAccepted = isZoneSelectionValid( | |
const isProjectAreaAccepted = isZoneSelectionValid( | |
//could also do isValidZoneSelection |
Implements #NDT-282