-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRecentOrders.js
36 lines (33 loc) · 1.05 KB
/
RecentOrders.js
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
import React from 'react';
const RecentOrders = () => {
const orders = [
{ id: 1, customer: 'John Doe', total: '$200', status: 'Pending' },
{ id: 2, customer: 'Jane Smith', total: '$150', status: 'Completed' },
];
return (
<div className="recent-orders">
<h2>Recent Orders</h2>
<table>
<thead>
<tr>
<th>ID</th>
<th>Customer</th>
<th>Total</th>
<th>Status</th>
</tr>
</thead>
<tbody>
{orders.map(order => (
<tr key={order.id}>
<td>{order.id}</td>
<td>{order.customer}</td>
<td>{order.total}</td>
<td>{order.status}</td>
</tr>
))}
</tbody>
</table>
</div>
);
};
export default RecentOrders;