import React from "react"; import '../UtilComponents/App.css' const PassengerReport = (props) => { return(

Report on your drivers and drives


{props.report.map((term) => { return( ) })}
Driver Name Surname Kilometers travelled with driver Total price paid to driver Price per kilometer
{term.driverName} {term.driverSurname} {(Math.round(term.kmTravelledWithDriver * 100) / 100).toFixed(2)} km {(Math.round(term.totalPricePaid * 100) / 100).toFixed(2)} MKD {(Math.round(term.pricePerKm * 100) / 100).toFixed(2)} MKD per km
props.onDownloadReport(localStorage.getItem("passengerId"))} style={{borderColor: 'black', backgroundColor: 'cyan', color: "black"}}>Download Report
) } export default PassengerReport;