Perbaikan Project PPOB

This commit is contained in:
2022-01-12 15:22:11 +07:00
parent 64b33c2d6b
commit c95d0c3f46
5 changed files with 262 additions and 20 deletions

View File

@@ -293,6 +293,46 @@ export const Profile = observer(() => {
</Row>
)} */}
{store.authentication.userData.role === "Retail" && (
// <Row>
// <Col span={12}>
// <Text strong>Foto Identitas</Text>
// </Col>
// <Col span={12}></Col>
// <Col span={12}>
// <Text>
// <Image
// src={
// store.authentication.profileData.userDetail
// ?.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>
// <Col span={24}>
// <Text strong>Foto Toko</Text>
// <Text>
// <Row>
// {JSON.parse(
// store.authentication.profileData.userDetail
// ?.image_store
// ).map((item) => (
// <Image
// src={
// store.authentication.profileData.userDetail
// ?.image_store
// ? `${appConfig.apiUrl}/config/image/${item}`
// : "https://st4.depositphotos.com/14953852/24787/v/600/depositphotos_247872612-stock-illustration-no-image-available-icon-vector.jpg"
// }
// style={{ width: "10vw", marginRight: 15 }}
// />
// ))}
// </Row>
// </Text>
// </Col>
// </Row>
<Row>
<Col span={12}>
<Text strong>Foto Identitas</Text>
@@ -315,18 +355,14 @@ export const Profile = observer(() => {
<Text strong>Foto Toko</Text>
<Text>
<Row>
{JSON.parse(
store.authentication.profileData.userDetail
?.image_store
).map((item) => (
{store.authentication.imageProfil.map((item) => (
<Image
src={
store.authentication.profileData.userDetail
?.image_store
item
? `${appConfig.apiUrl}/config/image/${item}`
: "https://st4.depositphotos.com/14953852/24787/v/600/depositphotos_247872612-stock-illustration-no-image-available-icon-vector.jpg"
}
style={{ width: "10vw", marginRight: 15 }}
style={{ width: "10vw",marginRight:15 }}
/>
))}
</Row>