GTBitsOfGood / angels-among-us

Rescue one until there are none
https://staging--angels-among-us.netlify.app
MIT License
4 stars 0 forks source link

[Post view] [FE] Populate post content #94

Closed katsukixyz closed 1 year ago

katsukixyz commented 1 year ago

Context

We have built out a way to view the details of a post (Post View) in the previous semester. Currently, we have hard-coded some information in the modal. We'd like to update this view so that the post view shows data from the database corresponding to what the user clicked on to get to the view.

Requirements

Modify PetPostModal.tsx to take in props that describe a post. These props should be used to fill in the information in the post view accordingly.

There are some associated design changes to this view. Ensure that the implementations are updated to match the designs for desktop and mobile. The buttons meant for the admin - the edit, delete, and mark as covered/hide - are out of scope for this ticket. You can focus on the rest of the post view.

Acceptance Criteria

PM

EM

Designer