diff --git a/src/components/FlightCards/FlightCards.js b/src/components/FlightCards/FlightCards.js index 54b5d16..590d570 100644 --- a/src/components/FlightCards/FlightCards.js +++ b/src/components/FlightCards/FlightCards.js @@ -5,16 +5,16 @@ function FlightCards({flight}) {
-

{train.train_name}

+

{flight.train_name}

- Date: {train.next_date} + Date: {flight.next_date}

- Time: {train.train_time} + Time: {flight.flight_time}

- Cost: {train.cost} + Cost: {flight.cost}

diff --git a/src/pages/PlaceDetailPage/PlaceDetailPage.js b/src/pages/PlaceDetailPage/PlaceDetailPage.js index dcf35d3..d677283 100644 --- a/src/pages/PlaceDetailPage/PlaceDetailPage.js +++ b/src/pages/PlaceDetailPage/PlaceDetailPage.js @@ -8,6 +8,7 @@ import axios from 'axios' import baseUrl from '../../utils/Urls' import HotelCards from '../../components/HotelCards/HotelCards' import TrainCards from '../../components/FlightCards/TrainCards' +import FlightCards from '../../components/FlightCards/FlightCards' const PlaceDetailPage = () => { const[placeName,setPlaceName]=useState('') const[placeImage,setPlaceImage]=useState() @@ -92,18 +93,14 @@ const PlaceDetailPage = () => {
Flights to {placeName} - +
+
Trains to {placeName}