Closed syongkheng closed 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.
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:
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.