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

Move Create Unit/Lessons Button to the Home Pages #231

Closed ashayp22 closed 2 years ago

ashayp22 commented 2 years ago

Goals

Before, it took extra clicks to create a Unit/Lesson since contributors had to click Manage Units/Lesson and create Units/Lessons from that page. Now, we can move the button for creating Units from the Manage Unit/Lessons page to the Course/Unit Home page. Result: less clicks!

Screen Shot 2022-10-13 at 12 09 29 AM

Steps

  1. Move the button for creating Units from the Manage Unit/Lessons page to the client/src/pages/CourseHome and client/src/pages/UnitHome.
  2. Move the POST '/language/lesson' and POST '/language/unit' code to the files above.