-
-
-
{restaurant.name}
-
{restaurant.description}
-
-
- Miejscowość:{" "}
- {restaurant.city}
-
-
- Godziny pracy:{" "}
- {restaurant.workingHours}
-
- {restaurant.phone && (
-
- Kontakt:{" "}
- {restaurant.phone}
-
- )}
-
-
-
-
-
Menu
- {showDishList === false && }
- {showDishList === true && }
-
+
+
+
+ handleListItemClick(event, 0)}
+ >
+
+
+
+
+
+ handleListItemClick(event, 1)}
+ >
+
+
+
+
+
+ handleListItemClick(event, 2)}
+ >
+
+
+
+
+
+ handleListItemClick(event, 3)}
+ >
+
+
+
+
+
+ handleListItemClick(event, 4)}
+ >
+
+
+
+
+
+
+
);
diff --git a/src/components/Output/ListItemRestaurant.js b/src/components/Output/ListItemRestaurant.js
index 419f1a9..c98ff47 100644
--- a/src/components/Output/ListItemRestaurant.js
+++ b/src/components/Output/ListItemRestaurant.js
@@ -5,6 +5,7 @@ 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: {
@@ -24,6 +25,7 @@ const useStyles = makeStyles((theme) => ({
}));
export default function ListItemRestaurant(props) {
+ const history = useHistory();
const styles = useStyles();
const badgeData = {
color: "",
@@ -41,7 +43,10 @@ export default function ListItemRestaurant(props) {
badgeInit();
return (
-
+ history.push(`/editRestaurant/${props.id}`)}
+ >
{
- return ;
+ return (
+
+ );
});
return (
diff --git a/src/styles/EditRestaurant.scss b/src/styles/EditRestaurant.scss
new file mode 100644
index 0000000..4169f0e
--- /dev/null
+++ b/src/styles/EditRestaurant.scss
@@ -0,0 +1,15 @@
+.editRestaurant-container {
+ min-width: 70%;
+ min-height: 600px;
+ max-width: 100%;
+ background-color: $dark-gray;
+ border-radius: 15px;
+ display: flex;
+ flex-direction: row;
+}
+
+.editRestaurant-menu {
+ width: 100%;
+ max-width: 280px;
+ color: #c0c0c0;
+}