Newer
Older

Cross, Liam (UG - Comp Sci & Elec Eng)
committed
import { Link } from 'react-router-dom';
import { IFlight } from '../../../services/Dashboard/CustomerDashboard';

Cross, Liam (UG - Comp Sci & Elec Eng)
committed
import './FlightCard.scss';
interface IFlightCard {
flight: IFlight;
}
function FlightCard({ flight }: IFlightCard) {
return (
<>
<div className='flight-card'>
<span>{flight.id}</span>
{/* <span className='flight-path'>{flight.origin} - {flight.destination}</span> */}
<span>{flight.origin} - {flight.destination}</span>

Cross, Liam (UG - Comp Sci & Elec Eng)
committed
<Link to={'/flights/' + flight.id}>View Flight</Link>
</div>
</>
);
}
export default FlightCard;