hack4impact-uiuc / 7000-languages

Helping Indigenous communities around the world teach, learn and sustain their languages
GNU General Public License v3.0
12 stars 2 forks source link

Add Follow-Up Checkbox #168

Closed ashayp22 closed 2 years ago

ashayp22 commented 2 years ago

Is your feature request related to a problem? Please describe.

Screen Shot 2022-04-29 at 1 52 08 PM

We need to add the Checkbox back into the app.

Describe the solution you'd like

What needs to be added:

API:

  1. Add a shouldFollowUp field to the CourseDetails schema. This should be of type boolean, not required, and default is false.

Client

  1. 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.
  2. Add the data to the applyCourse function, which will send that data in the POST '/course'request.
  3. 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.

API

ashayp22 commented 2 years ago

169