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:
Rafael Taranto 2022-03-11 10:54:04 +00:00 committed by GitHub
commit c19c8cb866
2 changed files with 13 additions and 0 deletions

View file

@ -309,6 +309,7 @@ const DetailsRow = ({ it: tx, timezone }) => {
)}
{tx.customerFrontCameraPath && (
<IDButton
className={classes.idButton}
name="cam"
Icon={CamIdIcon}
InverseIcon={CamIdInverseIcon}>
@ -318,6 +319,17 @@ const DetailsRow = ({ it: tx, timezone }) => {
/>
</IDButton>
)}
{tx.txCustomerPhotoPath && (
<IDButton
name="cam"
Icon={CamIdIcon}
InverseIcon={CamIdInverseIcon}>
<img
src={`${URI}/operator-data/customersphotos/${tx.txCustomerPhotoPath}`}
alt=""
/>
</IDButton>
)}
</Box>
</div>
<div className={classes.exchangeRate}>

View file

@ -110,6 +110,7 @@ const GET_TRANSACTIONS = gql`
customerIdCardData
customerIdCardPhotoPath
customerFrontCameraPath
txCustomerPhotoPath
customerPhone
discount
customerId