TenantVoice looks to empower tenants to enforce accountability, fostering a collaborative environment that promotes sustained housing quality improvements
According to the wireframe for our homepage, we need to add buttons to tab between two feeds: housing-complex-specific feed and NYCHA-wide feed.
In the directory /frontend/src/pages, there is a file Home.jsx. In that file, define a filter using .filter on the posts state. When a user clicks the button to view housing-complex-specific feed, posts state needs to be filtered by complex that a user inputted when they sign-up
Requirements
[ ] Create two buttons on home page: Housing Complex button, and NYCHA-wide button
Context
According to the wireframe for our homepage, we need to add buttons to tab between two feeds: housing-complex-specific feed and NYCHA-wide feed.
In the directory
/frontend/src/pages
, there is a fileHome.jsx
. In that file, define a filter using.filter
on theposts
state. When a user clicks the button to view housing-complex-specific feed,posts
state needs to be filtered bycomplex
that a user inputted when they sign-upRequirements
.filter()
functioncomplex
from current user