Merge branch 'develop' into 'devops-staging'
Develop See merge request empatnusabangsa/ppob/ppob-frontend!33
This commit is contained in:
commit
6b1c05cfea
|
@ -189,6 +189,7 @@ export const DetailUser = observer(() => {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const routeData = [
|
const routeData = [
|
||||||
{
|
{
|
||||||
route: LINKS.HOME,
|
route: LINKS.HOME,
|
||||||
|
@ -204,6 +205,19 @@ export const DetailUser = observer(() => {
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const styleSaldoTitle = store.ui.mediaQuery.isDesktop
|
||||||
|
? {
|
||||||
|
display: "flex",
|
||||||
|
justifyContent: "center",
|
||||||
|
}
|
||||||
|
: { fontSize: "0.75rem" };
|
||||||
|
const styleSaldoContent = store.ui.mediaQuery.isDesktop
|
||||||
|
? {
|
||||||
|
fontSize: "1.25rem",
|
||||||
|
display: "flex",
|
||||||
|
justifyContent: "center",
|
||||||
|
}
|
||||||
|
: null;
|
||||||
return (
|
return (
|
||||||
<div className={["ppob-container"].join(" ")}>
|
<div className={["ppob-container"].join(" ")}>
|
||||||
<BreadcumbComponent data={routeData} />
|
<BreadcumbComponent data={routeData} />
|
||||||
|
@ -251,6 +265,8 @@ export const DetailUser = observer(() => {
|
||||||
</Row>
|
</Row>
|
||||||
</Col>
|
</Col>
|
||||||
<Col lg={12} xs={24}>
|
<Col lg={12} xs={24}>
|
||||||
|
<Row>
|
||||||
|
<Col lg={24} xs={24} style={{marginBottom: 30}}>
|
||||||
{store.authentication.userData.role === "Admin" && (
|
{store.authentication.userData.role === "Admin" && (
|
||||||
<Title strong level={3}>
|
<Title strong level={3}>
|
||||||
Action User Detail
|
Action User Detail
|
||||||
|
@ -330,6 +346,48 @@ export const DetailUser = observer(() => {
|
||||||
</Space>
|
</Space>
|
||||||
)}
|
)}
|
||||||
</Col>
|
</Col>
|
||||||
|
<Col lg={24} xs={24}>
|
||||||
|
<Row>
|
||||||
|
<Col lg={12} xs={12}>
|
||||||
|
<Row justify={"center"}>
|
||||||
|
<Col lg={12} xs={12}>
|
||||||
|
<Title strong level={3} style={styleSaldoTitle}>
|
||||||
|
Saldo
|
||||||
|
</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 lg={12} xs={12}>
|
||||||
|
<Row justify={"center"}>
|
||||||
|
<Col lg={12} xs={12}>
|
||||||
|
<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?.profit || 0)}
|
||||||
|
</Text>
|
||||||
|
</Col>
|
||||||
|
<Col></Col>
|
||||||
|
</Row>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Col span={24}>
|
<Col span={24}>
|
||||||
|
|
|
@ -234,8 +234,8 @@ export const Profile = observer(() => {
|
||||||
<Col></Col>
|
<Col></Col>
|
||||||
</Row>
|
</Row>
|
||||||
</Col>
|
</Col>
|
||||||
{store.authentication.userData.role === "Admin" ||
|
{store.authentication.userData.role != "Admin Partner" &&
|
||||||
(store.authentication.userData.role === "Supervisor" && (
|
(store.authentication.userData.role != "Retail" && (
|
||||||
<Col span={store.ui.mediaQuery.isMobile ? 8 : 5}>
|
<Col span={store.ui.mediaQuery.isMobile ? 8 : 5}>
|
||||||
<Row justify={"center"}>
|
<Row justify={"center"}>
|
||||||
<Col lg={12} xs={12}>
|
<Col lg={12} xs={12}>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user