Bug Fixing

This commit is contained in:
ajat91.sudrajat 2022-01-27 12:12:27 +07:00
parent 8325c886bd
commit 859bf200ca

View File

@ -469,9 +469,11 @@ export const DetailUser = observer(() => {
Ganti Password Ganti Password
</Button> </Button>
{((store.authentication.userData.role === "Sales" && {((store.authentication.userData.role === "Sales" &&
store.membership.dataDetail.is_rejected === true) || store.membership.dataDetail.is_rejected === true &&
store.membership.dataDetail.is_active === false) ||
(store.authentication.userData.role === "Supervisor" && (store.authentication.userData.role === "Supervisor" &&
store.membership.dataDetail.is_rejected === true)) && ( store.membership.dataDetail.is_rejected === true &&
store.membership.dataDetail.is_active === false)) && (
<Button <Button
style={{ style={{
backgroundColor: "#1bb91d", backgroundColor: "#1bb91d",
@ -566,7 +568,8 @@ export const DetailUser = observer(() => {
<Text strong>Foto Toko</Text> <Text strong>Foto Toko</Text>
<Text> <Text>
<Row> <Row>
{store.authentication.listImage?store.authentication.listImage.map( {store.authentication.listImage
? store.authentication.listImage.map(
(item, index) => ( (item, index) => (
<Image <Image
key={index} key={index}
@ -578,7 +581,8 @@ export const DetailUser = observer(() => {
style={{ width: "10vw", marginRight: 15 }} style={{ width: "10vw", marginRight: 15 }}
/> />
) )
) : ""} )
: ""}
</Row> </Row>
</Text> </Text>
</Col> </Col>
@ -608,7 +612,9 @@ export const DetailUser = observer(() => {
<Text strong>Foto Toko</Text> <Text strong>Foto Toko</Text>
<Text> <Text>
<Row> <Row>
{store.authentication.listImage?store.authentication.listImage.map((item, index) => ( {store.authentication.listImage
? store.authentication.listImage.map(
(item, index) => (
<Image <Image
key={index} key={index}
src={ src={
@ -618,7 +624,9 @@ export const DetailUser = observer(() => {
} }
style={{ width: "10vw", marginRight: 15 }} style={{ width: "10vw", marginRight: 15 }}
/> />
)):""} )
)
: ""}
</Row> </Row>
</Text> </Text>
</Col> </Col>
@ -815,7 +823,8 @@ export const DetailUser = observer(() => {
description={ description={
<div style={{}}> <div style={{}}>
<p> <p>
<small>Pembeli : {item.buyer}</small> <br /> <small>Pembeli : {item.buyer}</small>{" "}
<br />
<small>Price : {item.price}</small> <br /> <small>Price : {item.price}</small> <br />
<small> <small>
Tujuan : {item.transaction_destination} Tujuan : {item.transaction_destination}