Perbaikan PPOB

This commit is contained in:
ajat91.sudrajat 2022-01-07 19:55:37 +07:00
parent b85af8fca6
commit 0a6fabc7d2
2 changed files with 58 additions and 46 deletions

View File

@ -392,36 +392,63 @@ export const DetailUser = observer(() => {
: "Inaktif"} : "Inaktif"}
</Text> </Text>
</Col> </Col>
<Col span={12}> {store.authentication.userData.role === "Sales" && (
<Text strong>Foto Identitas</Text> <Row>
</Col> <Col span={12}>
<Col span={12}> <Text strong>Foto Identitas</Text>
<Text strong>Foto Toko</Text> </Col>
</Col> <Col span={12}>
<Col span={12}> <Text strong>Foto Toko</Text>
<Text> </Col>
<Image <Col span={12}>
src={ <Text>
store.authentication.dataProfit.userDetail?.image_identity <Image
? `${appConfig.apiUrl}/config/image/${store.authentication.dataProfit.userDetail?.image_identity}` src={
: "https://st4.depositphotos.com/14953852/24787/v/600/depositphotos_247872612-stock-illustration-no-image-available-icon-vector.jpg" store.authentication.dataProfit.profileData
} ?.image_identity
style={{ width: "10vw" }} ? `${appConfig.apiUrl}/config/image/${store.authentication.dataProfit.userDetail?.image_identity}`
/> : "https://st4.depositphotos.com/14953852/24787/v/600/depositphotos_247872612-stock-illustration-no-image-available-icon-vector.jpg"
</Text> }
</Col> style={{ width: "10vw" }}
<Col span={12}> />
<Text> </Text>
<Image </Col>
src={ <Col span={12}>
store.authentication.dataProfit.userDetail?.image_store <Text>
? `${appConfig.apiUrl}/config/image/${store.authentication.dataProfit.userDetail?.image_store}` <Image
: "https://st4.depositphotos.com/14953852/24787/v/600/depositphotos_247872612-stock-illustration-no-image-available-icon-vector.jpg" src={
} store.authentication.dataProfit.profileData
style={{ width: "10vw" }} ?.image_store
/> ? `${appConfig.apiUrl}/config/image/${store.authentication.dataProfit.userDetail?.image_store}`
</Text> : "https://st4.depositphotos.com/14953852/24787/v/600/depositphotos_247872612-stock-illustration-no-image-available-icon-vector.jpg"
</Col> }
style={{ width: "10vw" }}
/>
</Text>
</Col>
</Row>
)}
{store.authentication.userData.role === "Supervisor" && (
<Row>
<Col span={12}>
<Text strong>Foto Identitas</Text>
</Col>
<Col span={12}></Col>
<Col span={12}>
<Text>
<Image
src={
store.authentication.dataProfit.profileData
?.image_identity
? `${appConfig.apiUrl}/config/image/${store.authentication.profileData.userDetail?.image_identity}`
: "https://st4.depositphotos.com/14953852/24787/v/600/depositphotos_247872612-stock-illustration-no-image-available-icon-vector.jpg"
}
style={{ width: "10vw" }}
/>
</Text>
</Col>
</Row>
)}
</Row> </Row>
</Col> </Col>
<Col lg={12} xs={24}> <Col lg={12} xs={24}>

View File

@ -297,9 +297,7 @@ export const Profile = observer(() => {
<Col span={12}> <Col span={12}>
<Text strong>Foto Identitas</Text> <Text strong>Foto Identitas</Text>
</Col> </Col>
<Col span={12}> <Col span={12}></Col>
<Text strong>Foto Toko</Text>
</Col>
<Col span={12}> <Col span={12}>
<Text> <Text>
<Image <Image
@ -313,19 +311,6 @@ export const Profile = observer(() => {
/> />
</Text> </Text>
</Col> </Col>
<Col span={12}>
<Text>
<Image
src={
store.authentication.dataProfit.profileData
?.image_store
? `${appConfig.apiUrl}/config/image/${store.authentication.profileData.userDetail?.image_store}`
: "https://st4.depositphotos.com/14953852/24787/v/600/depositphotos_247872612-stock-illustration-no-image-available-icon-vector.jpg"
}
style={{ width: "10vw" }}
/>
</Text>
</Col>
</Row> </Row>
)} )}
</Row> </Row>