Added categories / add category
This commit is contained in:
31
src/components/EditRestaurant/LunchMenu.js
Normal file
31
src/components/EditRestaurant/LunchMenu.js
Normal file
@@ -0,0 +1,31 @@
|
||||
import React from "react";
|
||||
import IconButton from "@material-ui/core/IconButton";
|
||||
import DeleteIcon from "@material-ui/icons/Delete";
|
||||
import List from "@material-ui/core/List";
|
||||
import ListItem from "@material-ui/core/ListItem";
|
||||
|
||||
export default function LunchMenu(props) {
|
||||
const { lunchMenu } = props;
|
||||
const LunchDishes = () => {
|
||||
if (lunchMenu.length > 0) {
|
||||
lunchMenu.map((dish) => {
|
||||
return (
|
||||
<ListItem key={dish}>
|
||||
Dish name
|
||||
<IconButton
|
||||
color="primary"
|
||||
aria-label="upload picture"
|
||||
component="span"
|
||||
>
|
||||
<DeleteIcon />
|
||||
</IconButton>
|
||||
</ListItem>
|
||||
);
|
||||
});
|
||||
} else {
|
||||
return <ListItem>Lunch menu puste</ListItem>;
|
||||
}
|
||||
};
|
||||
|
||||
return <List>{LunchDishes}</List>;
|
||||
}
|
||||
Reference in New Issue
Block a user