web client v0.9 (restaurant view)

This commit is contained in:
2020-10-04 17:24:36 +02:00
parent 21ea3f821e
commit b3ade3de7d
15 changed files with 456 additions and 36 deletions

View File

@@ -19,6 +19,7 @@ import { notification, refreshUserData } from "../../actions";
import { showBackdrop, hideBackdrop } from "../../actions/toggles.js";
import { backend } from "../../config";
import Tooltip from "@material-ui/core/Tooltip";
import LunchSetDishList from "../Output/LunchSetDishList";
const useStyles = makeStyles((theme) => ({
root: {
@@ -86,6 +87,7 @@ export default function EditCategoriesList(props) {
sendForm("delete", selectedSet);
setOpen(false);
};
const SetList = props.lunchMenu.map((set) => {
return (
<Accordion key={set.id} className={classes.root}>
@@ -107,6 +109,7 @@ export default function EditCategoriesList(props) {
</Tooltip>
</div>
</AccordionSummary>
<LunchSetDishList lunchSet={set} restaurantId={props.restaurantId} />
</Accordion>
);
});