You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 15, 2020. It is now read-only.
projects: In this component, we store a sorted list of all the projects in the "projects" database table. Each entry in this list contains the project name, wave, and table name in the judging process.
Functions
componentDidMount(): In this our mount function, we set state such that the projects component is assigned a sorted list of all the projects from the "projects" table.
getProjectInfo(): This is a helper function that fetches the project name, wave, and table name of all projects from the "projects" table in the database.
compareWaveFunct(project1, project2): This is a compare function that is passed into the Javascript sort() function, and is used to decide which of two projects comes first in projects state. This compare function guarantees that projects are sorted first by wave, and then by table name within each wave.
routeToPrev(): This function is used when the "Prev" button is clicked, and will route the application to the project-breakdown page.