web client v0.3
+ restaurant view + restaurants list
This commit is contained in:
@@ -44,7 +44,14 @@ export default function UserMenu(props) {
|
||||
const history = useHistory();
|
||||
|
||||
const viewRestaurants = restaurants.map((restaurant) => {
|
||||
return <ListItemRestaurant name={restaurant.name} key={restaurant._id} />;
|
||||
return (
|
||||
<ListItemRestaurant
|
||||
name={restaurant.name}
|
||||
key={restaurant._id}
|
||||
subscriptionActive={restaurant.subscriptionActive}
|
||||
id={restaurant._id}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user