-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRentalInformation.js
39 lines (36 loc) · 1.42 KB
/
RentalInformation.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
const RentalInformation = ({rentalData}) => {
return (
<>
{
rentalData.map((currRentalData) => { //loops through records
const {Make, Model, Color,
CustomerID, Cname, Email,
CPhone_number, rentalID, RentalDate,
Rental_fees, ReceiptID, Total_Cost,
Payment_method, staffID, Sname, Semail} = currRentalData;
return(
<tr key={ReceiptID}>
<td>{Make}</td>
<td>{Model}</td>
<td>{Color}</td>
<td>{CustomerID}</td>
<td>{Cname}</td>
<td>{Email}</td>
<td>{CPhone_number}</td>
<td>{rentalID}</td>
<td>{RentalDate}</td>
<td>{Rental_fees}</td>
<td>{ReceiptID}</td>
<td>{Total_Cost}</td>
<td>{Payment_method}</td>
<td>{staffID}</td>
<td>{Sname}</td>
<td>{Semail}</td>
</tr>
)
})
}
</>
)
}
export default RentalInformation;