Changeset 5528b99 for frontend/src/Components/TransportEdit
- Timestamp:
- 01/16/24 16:34:03 (10 months ago)
- Branches:
- master
- Children:
- 07f4e8b
- Parents:
- e6c2521
- Location:
- frontend/src/Components/TransportEdit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/Components/TransportEdit/TransportEditTab.js
re6c2521 r5528b99 12 12 function TransportEditTab(props) { 13 13 const [activeTab, setActiveTab] = useState("/hotel"); 14 const link = "/transport/" + props.displayRoute.transportID + "/available"; 14 15 console.log(props.displayRoute) 16 const [changed, setChanged] = useState(0) 17 const { data, setData, isLoading, getData } = useGet(link, changed); 15 18 16 19 -
frontend/src/Components/TransportEdit/TransportListing.js
re6c2521 r5528b99 9 9 10 10 //const type = props.type == "hotel" ? "сместувањето" : props.type == "restaurant" ? "ресторанот" : "превозот"; 11 console.log(props.data) 12 console.log(props.data.from) 11 13 return (<> 12 14 <a href="#" style={{textDecoration: "none", color: "black"}}> … … 32 34 <Col className="d-flex flex-column justify-content-center" style={{textAlign: "left"}}> 33 35 <h2>{props.data.from} - {props.data.to}</h2> 36 {/* <h6>{props.data.routeCities}</h6> */} 34 37 <h6>{props.data.routes.map(x => x).join(", ")}</h6> 35 38 </Col> … … 37 40 <Col className="d-flex flex-column justify-content-center align-content-center"> 38 41 <h5>Цена:</h5> 39 <h4>{props.data.maxPrice}$</h4> 42 {/* <h4>{props.data.routePrice}</h4> */} 43 <h4>99$</h4> 40 44 </Col> 41 45 </Row>
Note:
See TracChangeset
for help on using the changeset viewer.