ReneReid / Internify

3 stars 0 forks source link

Feat/in 94 checkbox state #86

Closed JudeShamsi closed 3 years ago

JudeShamsi commented 3 years ago

User Story

Add the user story number here. https://chaosneutral.atlassian.net/jira/software/projects/IN/boards/1?selectedIssue=IN-94

Changes made

Describe the changes made in this PR.

Updated all the components initial state to be the state of the jobData object passed down as props. This will allow for both cases when a user passes down a pre-filled job object from the database (used for edit, used for prefilled posting, used for an empty object). This will then update the checkboxes and radio buttons to be checked or un-checked based on the state of the object.

Does your new code introduce new warnings on dev console?

Yes/No. No

Test Steps

Describe the test steps to test your changes. Select create new posting, fill out the posting, click between pages and see the checkboxes and radio button states filled