web client changfed
This commit is contained in:
@@ -8,6 +8,8 @@ import { useSelector, useDispatch } from "react-redux";
|
||||
import { fetchRestaurant } from "../../actions";
|
||||
import GoogleMapStatic from "./GoogleMapStatic";
|
||||
import WorkingHours from "./WorkingHours";
|
||||
import Social from "./Social";
|
||||
import LunchMenu from "./LunchMenu";
|
||||
|
||||
export default function Restaurant(props) {
|
||||
const restaurant = useSelector((state) => state.restaurant);
|
||||
@@ -51,6 +53,13 @@ export default function Restaurant(props) {
|
||||
<span className="restaurant-span">{restaurant.phone}</span>
|
||||
</p>
|
||||
)}
|
||||
{restaurant.links && (
|
||||
<Social
|
||||
facebook={restaurant.links.facebook}
|
||||
instagram={restaurant.links.instagram}
|
||||
www={restaurant.links.www}
|
||||
/>
|
||||
)}
|
||||
<WorkingHours hours={restaurant.workingHours} />
|
||||
<hr />
|
||||
<h5>Lokalizacja</h5>
|
||||
@@ -61,6 +70,11 @@ export default function Restaurant(props) {
|
||||
</div>
|
||||
<div className="restaurant-content">
|
||||
<div className="restaurant-dishes">
|
||||
{restaurant.lunchHours && (
|
||||
<h3>Lunch menu ({restaurant.lunchHours})</h3>
|
||||
)}
|
||||
{showDishList === false && <CircularProgress />}
|
||||
{showDishList === true && <LunchMenu restaurant={restaurant} />}
|
||||
<h3>Menu</h3>
|
||||
{showDishList === false && <CircularProgress />}
|
||||
{showDishList === true && <DishList />}
|
||||
@@ -69,9 +83,3 @@ export default function Restaurant(props) {
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
/* {restaurant.location !== undefined && (
|
||||
<GoogleMapStatic coordinates={restaurant.location.coordinates} />
|
||||
)} */
|
||||
|
||||
Reference in New Issue
Block a user