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

Report on your passengers


{props.report.map((term) => { return( ) })}
Passenger Email Passenger Name Surname Kilometers Travelled With Passenger Total Earnings from passenger Earnings Per Kilometer Average Grade Received Per Drive Number Of Drives
{term.passengerEmail} {term.passengerName} {term.passengerSurname} {(Math.round(term.kmTravelledWithPassenger * 100) / 100).toFixed(2)} km {(Math.round(term.totalEarnings * 100) / 100).toFixed(2)} MKD {(Math.round(term.earningsPerKm * 100) / 100).toFixed(2)} MKD per km {(Math.round(term.averageGradeReceivedPerDrive * 100) / 100).toFixed(2)} {term.numberOfDrives} drives
props.onDownloadReport(localStorage.getItem("driverId"))} style={{borderColor: 'black', backgroundColor: 'cyan', color: "black"}}>Download Report
) } export default DriverReport;