MyGiftCard.js
3.21 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import Image from "next/image";
import React, { Fragment } from "react";
import { Button } from "react-bootstrap";
import { renderImage } from "../../services/imageHandling";
const MyGiftCard = () => {
const giftCardData = [
{
id: "0",
sender_email: "John@gmail.com",
receiver_email: "martha@gmail.com",
gift_amount: "$750",
image: "/images/zango-logo.svg"
},
{
id: "1",
sender_email: "John@gmail.com",
receiver_email: "martha@gmail.com",
gift_amount: "$750",
image: "/images/zango-logo.svg"
},
{
id: "2",
sender_email: "John@gmail.com",
receiver_email: "martha@gmail.com",
gift_amount: "$750",
image: "/images/zango-logo.svg"
},
]
return (
<Fragment>
<div className="container">
<div className="row">
<div className="col-12 col-lg-12 form-container content-wraaper">
<h2>My Gift Card</h2>
<div className="row">
{giftCardData?.length && giftCardData.map((data, index) => (
<div className="col-12 col-lg-4" key={`1${index}`}>
<div className="card-booking">
<div className="card-booking-img bgGrey">
<span className="image-container">
<Image src={renderImage(data.image)} layout="fill" className="image" />
</span>
</div>
<div className="card-booking-content details-wrapper">
<p className="details">Details</p>
<div className="d-flex align-items-start justify-content-between">
<div className="details-div">
<p>Sender’s Email Id</p>
<p>{data.sender_email}</p>
</div>
<div className="details-div">
<p>Receiver’s Email Id</p>
<p>{data.receiver_email}</p>
</div>
</div>
<div className="details-div">
<p>Gift Amount</p>
<p>{data.gift_amount}</p>
</div>
</div>
</div>
</div>
))}
</div>
</div>
</div>
</div>
</Fragment>
)
}
export default MyGiftCard;