-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94f73a1
commit 4585ae1
Showing
10 changed files
with
67 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
roadside-forms-frontend/frontend_web_app/src/utils/constants.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export const genderDropdown = [ | ||
{ | ||
label: "MALE", | ||
value: "M", | ||
}, | ||
{ | ||
label: "FEMALE", | ||
value: "F", | ||
}, | ||
{ | ||
label: "GENDER DIVERSE", | ||
value: "X", | ||
}, | ||
{ | ||
label: "UNKNOWN", | ||
value: "U", | ||
}, | ||
]; |
8 changes: 4 additions & 4 deletions
8
roadside-forms-frontend/frontend_web_app/src/utils/formatBCDL.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
export const formatBCDL = (event, values) => { | ||
export const formatBCDL = (dlNumber, values) => { | ||
if ( | ||
values["TwelveHour"] || | ||
(values["drivers_licence_jurisdiction"] && | ||
values["drivers_licence_jurisdiction"].label === "BRITISH COLUMBIA") | ||
) { | ||
if (event.target.value.length === 7) { | ||
return "0" + event.target.value.toUpperCase(); | ||
if (dlNumber.length === 7) { | ||
return "0" + dlNumber.toUpperCase(); | ||
} | ||
} | ||
return event.target.value.toUpperCase(); | ||
return dlNumber.toUpperCase(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters