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 && ( {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}>

View file

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