-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorder.js
65 lines (62 loc) · 1.23 KB
/
order.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
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
import {Tag} from "antd";
export const OrderStatus = {
SUCCESS: <Tag color="success">SUCCESS</Tag>,
FAILURE: <Tag color="error">FAILURE</Tag>,
UNPAID: <Tag color="processing">UNPAID</Tag>
};
export const columns = [
{
title: 'OrderId',
dataIndex: 'orderId',
key: 'orderId',
render: (text) => <a>{text}</a>,
},
{
title: 'Image',
dataIndex: 'image',
render: (text) => <img className="order-item-img" src={text} alt=""/>
},
{
title: 'Name',
dataIndex: 'name',
key: 'name',
render: (text) => <a>{text}</a>,
},
{
title: 'Quantity',
dataIndex: 'quantity',
key: 'quantity',
},
{
title: 'Amount',
className: 'column-money',
dataIndex: 'amount',
align: 'right',
},
];
export const orderData = [
{
key: '1',
orderId: "001",
image: '/plants/monstera-deliciosa.png',
name: 'Alocasia Zebrina',
quantity: 1,
amount: '130.000 VND'
},
{
key: '2',
orderId: "002",
image: '/plants/kentiapalm.png',
name: 'Alocasia Zebrina',
quantity: 1,
amount: '200.000 VND'
},
{
key: '3',
orderId: "003",
image: '/plants/euphorbia.png',
name: 'Alocasia Zebrina',
quantity: 2,
amount: '100.000 VND'
},
];