Tambah Fitur
This commit is contained in:
@@ -128,6 +128,11 @@ export const Profile = observer(() => {
|
||||
</Button>,
|
||||
];
|
||||
const columns = [
|
||||
{
|
||||
title: "Name Produk",
|
||||
dataIndex: "name",
|
||||
key: "name",
|
||||
},
|
||||
{
|
||||
title: "Price",
|
||||
dataIndex: "price",
|
||||
@@ -142,6 +147,7 @@ export const Profile = observer(() => {
|
||||
title: "Pembeli",
|
||||
dataIndex: "buyer",
|
||||
key: "buyer",
|
||||
width: "10%",
|
||||
},
|
||||
{
|
||||
title: "Tujuan",
|
||||
@@ -196,9 +202,13 @@ export const Profile = observer(() => {
|
||||
title: "Tanggal Transaksi",
|
||||
dataIndex: "created_at",
|
||||
key: "created_at",
|
||||
|
||||
width: "15%",
|
||||
render: (text, record) => {
|
||||
return <Text>{format(parseISO(record.created_at), "dd-MM-yyyy")}</Text>;
|
||||
return (
|
||||
<Text>
|
||||
{format(parseISO(record.created_at), "dd-MM-yyyy HH:mm:ss")}
|
||||
</Text>
|
||||
);
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user