Dashboard hookup frontend with backend #45
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.
Info
Closes #47. (If there is no issue for this pull request yet, please create one or
delete this line if the pull request is for a very minor tweak).
Hooking up frontend with backend for the dashboard page.
Description
What changes did you make? List all distinct problems that this PR addresses. Explain any relevant
motivation or context.
User's name and status are gotten from the backend User schema. Edited
UserAPI.ts
and added/app/api/getCurrentUser
to get the info - referenced Angela's code on her branch.Changes
Type of Change
expected)
workflows, linting, etc.)
If you've selected Patch, Minor, or Major as your change type, make sure to bump the version before merging in
package.json
!Testing
I have tested that my changes fully resolve the linked issue ...
Checklist
package.json
file.Screenshots
Please include a screenshot of your Postman testing passing successfully.
![image](https://private-user-images.githubusercontent.com/56415672/401332374-151f3443-90b8-4df1-99c1-35ab895bd75a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMjI0ODEsIm5iZiI6MTczOTMyMjE4MSwicGF0aCI6Ii81NjQxNTY3Mi80MDEzMzIzNzQtMTUxZjM0NDMtOTBiOC00ZGYxLTk5YzEtMzVhYjg5NWJkNzVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDAxMDMwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFiMjcyMTMzNThiMGRmM2NjMGQ5NjUwMDhiNTNhZDQ0NjkwMDhhZmY0NTkwMGJiOTBhMWVkNWIzMzc2MTljYzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.JWSIyAW66kl9hXcD6tWqof0nwqJ-ONsRwanzMKnTA-Y)