-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustomers.jsx
51 lines (49 loc) · 1.97 KB
/
customers.jsx
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
import React from "react";
import { BsPersonFill, BsThreeDotsVertical } from "react-icons/bs";
import { data } from "@/data/data";
const customers = () => {
return (
<div className="bg-gray-100 min-h-screen">
<div className="flex justify-between p-4">
<h2>Customers</h2>
<h2>Welcome Back, Prashant</h2>
</div>
<div className="p-4">
<div className="w-full m-auto p-4 border rounded-lg bg-white overflow-y-auto">
<div className="my-3 p-2 grid md:grid-cols-4 sm:grid-cols-3 grid-cols-2 items-center justify-between cursor-pointer">
<span>Name</span>
<span className="sm:text-left text-right">Email</span>
<span className="hidden md:grid">Last Order</span>
<span className="hidden sm:grid">Method</span>
</div>
<ul>
{data.map((order, id) => (
<li
key={id}
className="bg-gray-50 hover:bg-gray-100 rounded-lg my-3 p-2 grid md:grid-cols-4 sm:grid-cols-3 grid-cols-2 items-center justify-between cursor-pointer"
>
<div className="flex items-center">
<div className="bg-purple-100 p-3 rounded-lg">
<BsPersonFill className="text-purple-800" />
</div>
<p className="pl-4">
{order.name.first + " " + order.name.last}
</p>
</div>
<p className="text-gray-600 sm:text-left text-right">
{order.name.first}@gmail.com
</p>
<p className="hidden md:flex">{order.date}</p>
<div className="sm:flex hidden justify-between items-center">
<p>{order.method}</p>
<BsThreeDotsVertical />
</div>
</li>
))}
</ul>
</div>
</div>
</div>
);
};
export default customers;