Menu

Developing the Pages

Developing the Pages

The pages folder holds the two separate pages of the app, each one bringing the components together with actual data.

  • CustomerSide.jsx renders the Navbar, loops through a list of dummy products using .map() to display a ProductCard for each one, and manages a selected state — when a product is selected, ReviewModal is conditionally rendered on top of the page for that product.

  • AdminSide.jsx also renders the Navbar, then displays summary cards for total reviews, average rating, and low-rating count—all calculated live from the dummy review data—followed by a table listing every review, with a filter state that lets the admin narrow the list by star rating.