Newer
Older
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 { Avatar, Card, CardBody } from "@nextui-org/react";
const items = [
{
name: "Jose Perez",
picture: "https://i.pravatar.cc/150?u=a042581f4e29026024d",
amount: "4500 USD",
date: "9/20/2021",
},
{
name: "Jose Perez",
picture: "https://i.pravatar.cc/150?u=a042581f4e29026024d",
amount: "4500 USD",
date: "9/20/2021",
},
{
name: "Jose Perez",
picture: "https://i.pravatar.cc/150?u=a042581f4e29026024d",
amount: "4500 USD",
date: "9/20/2021",
},
{
name: "Jose Perez",
picture: "https://i.pravatar.cc/150?u=a042581f4e29026024d",
amount: "4500 USD",
date: "9/20/2021",
},
{
name: "Jose Perez",
picture: "https://i.pravatar.cc/150?u=a042581f4e29026024d",
amount: "4500 USD",
date: "9/20/2021",
},
];
export const CardTransactions = () => {
return (
<Card className=" bg-default-50 rounded-xl shadow-md px-3">
<CardBody className="py-5 gap-4">
<div className="flex gap-2.5 justify-center">
<div className="flex flex-col border-dashed border-2 border-divider py-2 px-6 rounded-xl">
<span className="text-default-900 text-xl font-semibold">
Latest Transactions
</span>
</div>
</div>
<div className="flex flex-col gap-6 ">
{items.map((item) => (
<div key={item.name} className="grid grid-cols-4 w-full">
<div className="w-full">
<Avatar
isBordered
color="secondary"
src="https://i.pravatar.cc/150?u=a042581f4e29026024d"
/>
</div>
<span className="text-default-900 font-semibold">
{item.name}
</span>
<div>
<span className="text-success text-xs">{item.amount}</span>
</div>
<div>
<span className="text-default-500 text-xs">{item.date}</span>
</div>
</div>
))}
</div>
</CardBody>
</Card>
);
};