The ShopOrders component

Sellers will view their list of orders in the ShopOrders component, with each order showing only the purchased products relevant to the shop, and allowing the seller to change the status of the product with a dropdown of possible status values:

We will update MainRouter with a PrivateRoute, to load the ShopOrders component at the /seller/orders/:shop/:shopId route.

mern-marketplace/client/MainRouter.js:

<PrivateRoute path="/seller/orders/:shop/:shopId" component={ShopOrders}/>

Get Full-Stack React Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.