Changeset ac19a0c for frontend/src/Components/Resources/ResourceListing.js
- Timestamp:
- 01/13/24 23:19:50 (9 months ago)
- Branches:
- master
- Children:
- e85a562
- Parents:
- e9b4ba9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/Components/Resources/ResourceListing.js
re9b4ba9 rac19a0c 6 6 7 7 const ResourceListing = (props) => { 8 9 console.log("props " + props.id)10 11 8 12 9 const type = props.type == "hotel" ? "сместувањето" : props.type == "restaurant" ? "ресторанот" : "превозот"; 13 10 const name = props.type == "hotel" ? props.data.hotelName : props.type == "restaurant" ? props.data.restaurantName : props.data.transportName 14 const id = props.type == "hotel" ? props.data.hotelId : props.type == "restaurant" ? props.data.resturantId : props.data.transportID 15 return(<> 11 const id = props.type == "hotel" ? props.data.hotelId : props.type == "restaurant" ? props.data.restaurantID : props.data.transportID 12 console.log(props.data) 13 return(<> 16 14 <a href={`${props.type}/${id}`} style={{textDecoration: "none", color:"black"}}> 17 15 <Container className="py-3 px-1 my-4"
Note:
See TracChangeset
for help on using the changeset viewer.