Conversation
RLee64
left a comment
There was a problem hiding this comment.
Nice work! Just address the comment below and feel free to merge this in.
That said, this PR won't finish the current ticket. There's a bit more to do for the task since we'll want to hook up the other endpoints as well. Both Executives.tsx and ExecCard.tsx should have 2 modes, one for basic users and another for admins. The basic user view works exactly as implemented right now, but the admin view needs to expose functionality for editing/deleting (part of an individual ExecCard component) and creating (a separate component found in the main Executives file). I've attached an image below as an example.
For now just hardcode the user/admin modes (i.e. a const value at the top of the file), and we'll properly integrate it once user context is set-up.
Just adding onto this, #34 might be a good reference for stuff already done to differentiate between user and admin modes |
I've addressed the comment about the loading message. I'll likely not have time to start the rest of task until the end of next week, but I will look into it! |
Description
Get the "About Us" page to use the executives data from the backend instead of placeholder data.
Changes
Executives.tsxcomponent fetches and uses the data from the API.placeholdersfolder that contained only the now unusedexecutives.jsonplaceholder data.About.tsx.Extra Notes