Perbaikan Menu Profil

This commit is contained in:
ajat91.sudrajat 2021-12-30 17:38:34 +07:00
parent 467d67089f
commit 07c08472b3

View File

@ -105,7 +105,7 @@ export const Profile = observer(() => {
title: "Price", title: "Price",
dataIndex: "price", dataIndex: "price",
key: "price", key: "price",
width: "20%",
render: (text) => render: (text) =>
new Intl.NumberFormat("id-ID", { new Intl.NumberFormat("id-ID", {
style: "currency", style: "currency",
@ -113,10 +113,34 @@ export const Profile = observer(() => {
}).format(text), }).format(text),
}, },
{ {
title: "Buyer", title: "Pembeli",
dataIndex: "buyer", dataIndex: "buyer",
key: "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", title: "Transaction Date",
@ -206,30 +230,33 @@ export const Profile = observer(() => {
<Col></Col> <Col></Col>
</Row> </Row>
</Col> </Col>
<Col span={store.ui.mediaQuery.isMobile ? 8 : 5}> {store.authentication.userData.role === "Admin" ||
<Row justify={"center"}> (store.authentication.userData.role === "Supervisor" && (
<Col lg={12} xs={12}> <Col span={store.ui.mediaQuery.isMobile ? 8 : 5}>
<Title strong level={3} style={styleSaldoTitle}> <Row justify={"center"}>
Profit <Col lg={12} xs={12}>
</Title> <Title strong level={3} style={styleSaldoTitle}>
Profit
</Title>
</Col>
<Col lg={24} xs={12}>
<Text style={styleSaldoContent}>
{new Intl.NumberFormat("id-ID", {
style: "currency",
currency: "IDR",
}).format(store.authentication.profileData?.wallet || 0)}
</Text>
</Col>
<Col></Col>
</Row>
</Col> </Col>
<Col lg={24} xs={12}> ))}
<Text style={styleSaldoContent}>
{new Intl.NumberFormat("id-ID", {
style: "currency",
currency: "IDR",
}).format(store.authentication.profileData?.wallet || 0)}
</Text>
</Col>
<Col></Col>
</Row>
</Col>
</Row> </Row>
<Row> <Row>
<Col span={24}> <Col span={24}>
<div> <div>
<Title strong level={3}> <Title strong level={3}>
History User Transaction History Transaction
</Title> </Title>
<Button <Button
style={{ marginBottom: "1rem" }} style={{ marginBottom: "1rem" }}