source: frontend/src/Components/HotelEdit/RoomListing.js@ 0f5aa27

Last change on this file since 0f5aa27 was e6c2521, checked in by darsov2 <62809499+darsov2@…>, 10 months ago

images upload/download impl, other fixes

  • Property mode set to 100644
File size: 2.4 KB
RevLine 
[e6c2521]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";
8import AddImages from "../Resources/AddImages";
9
10
11const RoomListing = (props) => {
12
13 const type = props.type == "hotel" ? "сместувањето" : props.type == "restaurant" ? "ресторанот" : "превозот";
14 return (
15 <>
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 onClick={(e) => {
26 e.preventDefault();
27 props.showModal(props.data);
28 console.log("kliknav")
29 }}
30 src="https://img.freepik.com/free-photo/luxury-classic-modern-bedroom-suite-hotel_105762-1787.jpg?w=200"
31 style={{
32 height: "8em",
33 borderRadius: "1em",
34 boxShadow: "0 4px 20px lightblue",
35 maxWidth: "100%",
36 }}
37 ></Image>
38 </Col>
39 <Col className="d-flex flex-column justify-content-center" style={{textAlign: "left"}}>
40 <h2>{props.data.hotelRoomName}</h2>
41 <h2>Цена по ноќ: {props.data.price}</h2>
42 </Col>
43 <Col className="d-flex flex-column justify-content-center align-content-center">
44 <AddImages type="room" Id={props.data.hotelRoomId} />
45 </Col>
46
47 <Col className="d-flex flex-column justify-content-center align-content-center">
48 <AddAvailability type="room" hotelRoomId={props.data.hotelRoomId} />
49 </Col>
50 </Row>
51 </Container>
52 </>)
53}
54
55export default RoomListing;
Note: See TracBrowser for help on using the repository browser.