Added categories / add category

This commit is contained in:
2020-09-28 20:27:55 +02:00
parent c6a9ed4ec0
commit 6391c99d07
4 changed files with 126 additions and 25 deletions

View 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>;
}