jeremyjevon / ICT2X01-Team-Project-P3-6

ICT2101/2201 Team Project
1 stars 0 forks source link

Home v0.1 - Added passing of selected student parameter #35

Closed syongkheng closed 2 years ago

syongkheng commented 2 years ago

Profile.js now passes the selected student name into Home.js.

However, this resulted in the home.js page requiring a parameter to be passed every time it is called, from any page. This means that whichever page calling the following pages:

    1. Stage.js
    2. Dashboard.js
    3. Leaderboard.js
    4. Profile.js
    5. Home.js
    6. Tutorial.js

Needs to import route, and receives and passes the selectedStudentKey accordingly.

The passed parameter might need to change from just the fname, to the document key of the students.