Merge pull request #1152 from josepfo/fix/add-tx-customer-photo-to-details
fix: add T&C photo to tx details
This commit is contained in:
commit
c19c8cb866
2 changed files with 13 additions and 0 deletions
|
|
@ -309,6 +309,7 @@ const DetailsRow = ({ it: tx, timezone }) => {
|
||||||
)}
|
)}
|
||||||
{tx.customerFrontCameraPath && (
|
{tx.customerFrontCameraPath && (
|
||||||
<IDButton
|
<IDButton
|
||||||
|
className={classes.idButton}
|
||||||
name="cam"
|
name="cam"
|
||||||
Icon={CamIdIcon}
|
Icon={CamIdIcon}
|
||||||
InverseIcon={CamIdInverseIcon}>
|
InverseIcon={CamIdInverseIcon}>
|
||||||
|
|
@ -318,6 +319,17 @@ const DetailsRow = ({ it: tx, timezone }) => {
|
||||||
/>
|
/>
|
||||||
</IDButton>
|
</IDButton>
|
||||||
)}
|
)}
|
||||||
|
{tx.txCustomerPhotoPath && (
|
||||||
|
<IDButton
|
||||||
|
name="cam"
|
||||||
|
Icon={CamIdIcon}
|
||||||
|
InverseIcon={CamIdInverseIcon}>
|
||||||
|
<img
|
||||||
|
src={`${URI}/operator-data/customersphotos/${tx.txCustomerPhotoPath}`}
|
||||||
|
alt=""
|
||||||
|
/>
|
||||||
|
</IDButton>
|
||||||
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
</div>
|
</div>
|
||||||
<div className={classes.exchangeRate}>
|
<div className={classes.exchangeRate}>
|
||||||
|
|
|
||||||
|
|
@ -110,6 +110,7 @@ const GET_TRANSACTIONS = gql`
|
||||||
customerIdCardData
|
customerIdCardData
|
||||||
customerIdCardPhotoPath
|
customerIdCardPhotoPath
|
||||||
customerFrontCameraPath
|
customerFrontCameraPath
|
||||||
|
txCustomerPhotoPath
|
||||||
customerPhone
|
customerPhone
|
||||||
discount
|
discount
|
||||||
customerId
|
customerId
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue