Is your feature request related to a problem? Please describe.
We need to add the Checkbox back into the app.
Describe the solution you'd like
What needs to be added:
API:
Add a shouldFollowUp field to the CourseDetails schema. This should be of type boolean, not required, and default is false.
Client
Add the JSX code for this component and hook it into the state in pages/Apply using useState. Refer to the other checkbox code on doing this. You can name the state variable shouldFollowUp.
Add the data to the applyCourse function, which will send that data in the POST '/course'request.
In redux/slices/language.slice.js, there is a field called courseDetails. Add the field shouldFollowUp to the initialState at the top of the file.
Is your feature request related to a problem? Please describe.
We need to add the Checkbox back into the app.
Describe the solution you'd like
What needs to be added:
API:
shouldFollowUp
field to theCourseDetails
schema. This should be of typeboolean
, not required, and default isfalse
.Client
pages/Apply
usinguseState
. Refer to the other checkbox code on doing this. You can name the state variableshouldFollowUp
.POST '/course'
request.redux/slices/language.slice.js,
there is a field calledcourseDetails
. Add the fieldshouldFollowUp
to theinitialState
at the top of the file.API