Commit e3f6ec53 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

fix: display send status of order for user

parent 57d3fdb2
......@@ -115,9 +115,19 @@ export default function Order() {
</Box>
</TableCell>
<TableCell>
<Box color={order.send_status ? "green" : "red"}>
{order.send_status == 0 ? (
<Box color="gray">
{order.send_status ? "ส่งแล้ว" : "ยังไม่จัดส่ง"}
</Box>
) : (
<>
{order.send_status == 1 ? (
<Box color="orangered">กำลังจัดส่ง</Box>
) : (
<Box color="green">จัดส่งแล้ว</Box>
)}
</>
)}
</TableCell>
</TableRow>
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment