source: RebuMKReact/src/Components/Payments/payments.js@ 364f27d

Last change on this file since 364f27d was 364f27d, checked in by MetodiMladenovski <meto.18@…>, 14 months ago

added projects and db scripts

  • Property mode set to 100644
File size: 1.7 KB
Line 
1import React from "react";
2
3const Payments = (props) => {
4
5 return(
6 <div className={"container mm-4 mt-5"} style={{width: "85%", margin: 'auto'}}>
7 <h2 style={{textAlign: "center", color: "darkcyan"}}>Payments</h2>
8 <hr></hr>
9 <div className={"row table-responsive"}>
10 <div className={"row"} style={{margin: 'auto'}}>
11 <table className={"table table-striped"}>
12 <thead>
13 <tr>
14 <th scope={"col"}>Drive Km Travelled</th>
15 <th scope={"col"}>Driver Who Executed Drive</th>
16 <th scope={"col"}>Passenger</th>
17 <th scope={"col"}>Sum payed</th>
18 <th scope={"col"}>Sum tipped</th>
19 </tr>
20 </thead>
21 <tbody>
22 {props.payments.map((term) => {
23 return(
24 <tr>
25 <td>{term.drive.kmTravelled} km</td>
26 <td>{term.drive.driver.name} {term.drive.driver.surname}</td>
27 <td>{term.passenger.name} {term.passenger.surname}</td>
28 <td>{term.totalSumPayed} MKD</td>
29 <td>{term.driverTip} MKD</td>
30 </tr>
31 )
32 })}
33 </tbody>
34 </table>
35 </div>
36 </div>
37 </div>
38 )
39}
40
41export default Payments;
Note: See TracBrowser for help on using the repository browser.