web client v0.5

//notifications
//delete restaurant
//change picture
//redesigned data store
This commit is contained in:
2020-09-27 18:40:39 +02:00
parent 3fdc93ef28
commit d2842a1db3
24 changed files with 810 additions and 501 deletions

View File

@@ -5,7 +5,6 @@ import ListItem from "@material-ui/core/ListItem";
import FastfoodIcon from "@material-ui/icons/Fastfood";
import Badge from "@material-ui/core/Badge";
import { makeStyles } from "@material-ui/core/styles";
import { useHistory } from "react-router-dom";
const useStyles = makeStyles((theme) => ({
root: {
@@ -25,7 +24,6 @@ const useStyles = makeStyles((theme) => ({
}));
export default function ListItemRestaurant(props) {
const history = useHistory();
const styles = useStyles();
const badgeData = {
color: "",
@@ -45,7 +43,7 @@ export default function ListItemRestaurant(props) {
return (
<ListItem
button
onClick={() => history.push(`/editRestaurant/${props.id}`)}
onClick={() => props.onClick(`/editRestaurant/${props.id}`)}
>
<ListItemIcon>
<Badge