diff --git a/src/pages/Profile/Profile.js b/src/pages/Profile/Profile.js index 42f0f04..ac999c2 100644 --- a/src/pages/Profile/Profile.js +++ b/src/pages/Profile/Profile.js @@ -105,7 +105,7 @@ export const Profile = observer(() => { title: "Price", dataIndex: "price", key: "price", - width: "20%", + render: (text) => new Intl.NumberFormat("id-ID", { style: "currency", @@ -113,10 +113,34 @@ export const Profile = observer(() => { }).format(text), }, { - title: "Buyer", + title: "Pembeli", dataIndex: "buyer", key: "buyer", - width: "50%", + }, + { + title: "Tujuan", + dataIndex: "tujuan", + key: "tujuan", + }, + { + title: "ID Transaksi", + dataIndex: "id_transaksi", + key: "id_transaksi", + }, + { + title: "Status", + dataIndex: "status", + key: "status", + }, + { + title: "No Seri", + dataIndex: "no_seri", + key: "no_seri", + }, + { + title: "IDTrx Mitra", + dataIndex: "idtrx_mitra", + key: "idtrx_mitra", }, { title: "Transaction Date", @@ -206,30 +230,33 @@ export const Profile = observer(() => { - - - - - Profit - + {store.authentication.userData.role === "Admin" || + (store.authentication.userData.role === "Supervisor" && ( + + + + + Profit + + + + + {new Intl.NumberFormat("id-ID", { + style: "currency", + currency: "IDR", + }).format(store.authentication.profileData?.wallet || 0)} + + + + - - - {new Intl.NumberFormat("id-ID", { - style: "currency", - currency: "IDR", - }).format(store.authentication.profileData?.wallet || 0)} - - - - - + ))}
- History User Transaction + History Transaction