web client v0.5
//notifications //delete restaurant //change picture //redesigned data store
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user