source: frontend/src/Components/HotelEdit/RoomListing.js@ ac19a0c

Last change on this file since ac19a0c was e9b4ba9, checked in by darsov2 <62809499+darsov2@…>, 6 months ago

prototype

  • Property mode set to 100644
File size: 2.2 KB
Line 
1import React from "react";
2import {useState} from "react";
3import {Col, Container, Row, Image, Modal, Button} from "react-bootstrap";
4import LoginForm from "../Login/LoginForm";
5import ChangePasswordForm from "../Forms/ChangePasswordForm";
6import {AiOutlinePlusCircle} from "react-icons/ai"
7import AddAvailability from "../Resources/AddAvailability";
8
9
10const RoomListing = (props) => {
11
12 const type = props.type == "hotel" ? "сместувањето" : props.type == "restaurant" ? "ресторанот" : "превозот";
13 return (
14 <>
15 <Container className="py-3 px-1 my-4"
16 style={{
17 border: "4px solid #159895",
18 borderRadius: "1em",
19 boxShadow: "0 3px 5px #159895",
20 maxWidth: "90%",
21 }}>
22 <Row>
23 <Col className="d-flex justify-content-center">
24 <Image onClick={(e) => {
25 e.preventDefault();
26 props.showModal(props.data);
27 console.log("kliknav")
28 }}
29 src="https://img.freepik.com/free-photo/luxury-classic-modern-bedroom-suite-hotel_105762-1787.jpg?w=200"
30 style={{
31 height: "8em",
32 borderRadius: "1em",
33 boxShadow: "0 4px 20px lightblue",
34 maxWidth: "100%",
35 }}
36 ></Image>
37 </Col>
38 <Col className="d-flex flex-column justify-content-center" style={{textAlign: "left"}}>
39 <h2>{props.data.hotelRoomName}</h2>
40 <h2>Цена по ноќ: {props.data.price}</h2>
41 </Col>
42
43 <Col className="d-flex flex-column justify-content-center align-content-center">
44 <AddAvailability type="room" hotelRoomId={props.data.hotelRoomId} />
45 </Col>
46 </Row>
47 </Container>
48 </>)
49}
50
51export default RoomListing;
Note: See TracBrowser for help on using the repository browser.