source: frontend/src/components/cards/payment-card.jsx@ badbc79

Last change on this file since badbc79 was badbc79, checked in by Luka Cheshlarov <luka.cheshlarov@…>, 20 months ago

Initial commit

  • Property mode set to 100644
File size: 1.7 KB
Line 
1import React from "react";
2import Potrosuvac from "../../assets/images/regularUser.jpg";
3import Menager from "../../assets/images/manager.jpg";
4import Vozac from "../../assets/images/food-driver.jpg";
5import Admin from "../../assets/images/admin.jpg";
6import {Card, CardContent, CardHeader, Grid, Typography} from "@mui/material";
7import {UserRole} from "../../services/user-service";
8import {formatDate} from "../functions";
9
10const PaymentCard = ({payment}) => {
11 return (
12 <Card variant="elevation" className={"card-zoom"}>
13 <CardHeader title={`Transaction Number #${payment.id}`}/>
14 <CardContent>
15 <Grid container direction={"column"} justifyContent={"start"} alignItems={"start"}>
16 <Typography className={"text-center"} variant="h5">
17 <b>Order Number: </b> #{payment.naracka.id}
18 </Typography>
19 <Typography className={"text-center"} variant="h5">
20 <b>Total :</b> {payment.iznos} MKD
21 </Typography>
22 <Typography className={"text-center"} variant="h5">
23 <b>Transaction Type: </b> {payment.nacinNaPlakjane}
24 </Typography>
25 <Typography className={"text-center"} variant="h5">
26 <b>Date: </b> {formatDate(payment.naracka.datum)}
27 </Typography>
28 <Typography className={"text-center"} variant="h5">
29 <b>Order Status:</b> {payment.naracka.status}
30 </Typography>
31 </Grid>
32 </CardContent>
33 </Card>
34 )
35}
36
37export default PaymentCard;
Note: See TracBrowser for help on using the repository browser.