QOL for frontend, information-rich landing. #73
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a new view to the frontend,
<Me />
to summarize all information for both students and professors, conditionally rendering based on their permissions. It has some boilerplate in it right now, but if the database is populated, it should render right.Additionally, fixes a bug in
SignUpForm.tsx
and makes a few small QOL changes to enforce some pet peeves with ESLint. Specifically,yoda
,eqeqeq
, andreact/jsx-key
.Changes
api.ts
.API Example
Writing a new API function is really easy. You just call either
authorized<T, R>()
orunauthorized<T, R>()
. Both generate functions of the following forms, respectively:Here is the declaration of the
createClass
binding:And here's an example of using it from
Me.tsx
:Screenshots
Student View
Professor View
View
out.mp4