web client v0.3

+ restaurant view
+ restaurants list
This commit is contained in:
2020-09-23 18:42:15 +02:00
parent 68ecf13aa1
commit e19b767c12
6 changed files with 108 additions and 44 deletions

View File

@@ -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 (