[e9b4ba9] | 1 | import React from "react";
|
---|
| 2 | import { useState } from "react";
|
---|
| 3 | import { Col, Container, Row, Image, Modal, Button } from "react-bootstrap";
|
---|
| 4 | import LoginForm from "../Login/LoginForm";
|
---|
| 5 | import ChangePasswordForm from "../Forms/ChangePasswordForm";
|
---|
| 6 | import { AiOutlinePlusCircle } from "react-icons/ai"
|
---|
| 7 | import EditModal from "../Resources/EditModal";
|
---|
| 8 |
|
---|
| 9 | const MenuListing = (props) => {
|
---|
| 10 |
|
---|
| 11 | const type = props.type == "hotel" ? "сместувањето" : props.type == "restaurant" ? "ресторанот" : "превозот";
|
---|
| 12 | console.log(props.data)
|
---|
| 13 | return(<>
|
---|
| 14 | <a href="#" onClick={(e) => {e.preventDefault(); props.showModal(props.data);
|
---|
| 15 | console.log("kliknav")} } style={{textDecoration: "none", color:"black"}}>
|
---|
| 16 | <Container className="py-3 px-1 my-4"
|
---|
| 17 | style={{
|
---|
| 18 | border: "4px solid #159895",
|
---|
| 19 | borderRadius: "1em",
|
---|
| 20 | boxShadow: "0 3px 5px #159895",
|
---|
| 21 | maxWidth: "90%",
|
---|
| 22 | }}>
|
---|
| 23 | <Row>
|
---|
| 24 | <Col className="d-flex justify-content-center">
|
---|
| 25 | <Image
|
---|
| 26 | src="https://www.tasteofhome.com/wp-content/uploads/2019/01/medium-rare-steak-shutterstock_706040446.jpg"
|
---|
| 27 | style={{
|
---|
| 28 | height: "8em",
|
---|
| 29 | borderRadius: "1em",
|
---|
| 30 | boxShadow: "0 4px 20px lightblue",
|
---|
| 31 | maxWidth: "100%",
|
---|
| 32 | }}
|
---|
| 33 | ></Image>
|
---|
| 34 | </Col>
|
---|
| 35 | <Col className="d-flex flex-column justify-content-center" style={{textAlign: "left"}}>
|
---|
| 36 | <h2>{props.data.name}</h2>
|
---|
| 37 | <h6>{props.data.ingredients}</h6>
|
---|
| 38 | </Col>
|
---|
| 39 |
|
---|
| 40 | <Col className="d-flex flex-column justify-content-center align-content-center">
|
---|
| 41 | <h5>Цена:</h5>
|
---|
| 42 | <h4>{props.data.price}$</h4>
|
---|
| 43 | </Col>
|
---|
| 44 | </Row>
|
---|
| 45 | </Container>
|
---|
| 46 | </a>
|
---|
| 47 | </>)
|
---|
| 48 | }
|
---|
| 49 |
|
---|
| 50 | export default MenuListing; |
---|