Changeset 07f4e8b for frontend/src/Components/Resources/ResourceListing.js
- Timestamp:
- 01/24/24 17:42:28 (5 months ago)
- Branches:
- master
- Children:
- 0f5aa27
- Parents:
- 5528b99
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/Components/Resources/ResourceListing.js
r5528b99 r07f4e8b 8 8 9 9 const ResourceListing = (props) => { 10 11 console.log("props " + props.id)12 13 10 14 11 const type = props.type == "hotel" ? "сместувањето" : props.type == "restaurant" ? "ресторанот" : "превозот"; 15 12 const name = props.type == "hotel" ? props.data.hotelName : props.type == "restaurant" ? props.data.restaurantName : props.data.transportName 16 <<<<<<< HEAD17 13 const id = props.type == "hotel" ? props.data.hotelId : props.type == "restaurant" ? props.data.restaurantID : props.data.transportID 18 14 console.log(props.data) … … 54 50 </Col> 55 51 56 <Col className="d-flex flex-column justify-content-center align-content-center">57 <AddImages type={props.type} Id={id} 58 </Col> 52 {props.type !== 'transport' && <Col className="d-flex flex-column justify-content-center align-content-center"> 53 <AddImages type={props.type} Id={id}/> 54 </Col>} 59 55 <Col className="d-flex justify-content-center align-content-center"> 60 =======61 const id = props.type == "hotel" ? props.data.hotelId : props.type == "restaurant" ? props.data.resturantId : props.data.transportID62 return(<>63 <a href={`${props.type}/${id}`} style={{textDecoration: "none", color:"black"}}>64 <Container className="py-3 px-1 my-4"65 style={{66 border: "4px solid #159895",67 borderRadius: "1em",68 boxShadow: "0 3px 5px #159895",69 maxWidth: "90%",70 }}>71 <Row>72 <Col className="d-flex justify-content-center">73 <Image74 src="https://www.imgacademy.com/sites/default/files/legacyhotel.jpg"75 style={{76 height: "8em",77 borderRadius: "1em",78 boxShadow: "0 4px 20px lightblue",79 maxWidth: "100%",80 }}81 ></Image>82 </Col>83 <Col >84 <h2 style={{textAlign: "left"}}>{name}</h2>85 {props.type === "hotel" && (<>86 <h5 style={{textAlign: "left"}}>{props.data.hotelLocation}</h5>87 <h5 style={{textAlign: "left"}}>{props.data.hotelEmail}</h5>88 </>)}89 {props.type === "restaurant" && (<>90 <h5 style={{textAlign: "left"}}>{props.data.restaurantLocation}</h5>91 <h5 style={{textAlign: "left"}}>{props.data.cousineType} кујна</h5>92 </>)}93 {props.type === "transport" && (<>94 <h5 style={{textAlign: "left"}}>{props.data.carBrand}</h5>95 <h5 style={{textAlign: "left"}}>{props.data.carPlate}</h5>96 </>)}97 </Col>98 <Col className="d-flex justify-content-center align-content-center" >99 >>>>>>> parent of ac19a0c (authContext impl, admin panel impl, search bar fixes, reservations listings impl)100 56 <span 101 57 style={{
Note:
See TracChangeset
for help on using the changeset viewer.