fix: T&C icon

This commit is contained in:
José Oliveira 2022-03-09 16:18:36 +00:00
parent 13a16bc965
commit d2d85ebb6b

View file

@ -261,25 +261,20 @@ const DetailsRow = ({ it: tx, timezone }) => {
{tx.customerPhone} {tx.customerPhone}
</IDButton> </IDButton>
)} )}
{(tx.customerIdCardPhotoPath || tx.txCustomerPhotoPath) && {tx.customerIdCardPhotoPath && !tx.customerIdCardData && (
!tx.customerIdCardData && ( <IDButton
<IDButton popoverClassname={classes.clipboardPopover}
popoverClassname={classes.clipboardPopover} className={classes.idButton}
className={classes.idButton} name="card"
name="card" Icon={CardIdIcon}
Icon={CardIdIcon} InverseIcon={CardIdInverseIcon}>
InverseIcon={CardIdInverseIcon}> <img
<img className={classes.idCardPhoto}
className={classes.idCardPhoto} src={`${URI}/id-card-photo/${tx.customerIdCardPhotoPath}`}
src={`${URI}${ alt=""
tx.customerIdCardPhotoPath />
? '/id-card-photo/' </IDButton>
: 'operator-data/customersphotos' )}
}${tx.customerIdCardPhotoPath ?? tx.txCustomerPhotoPath}`}
alt=""
/>
</IDButton>
)}
{tx.customerIdCardData && ( {tx.customerIdCardData && (
<IDButton <IDButton
className={classes.idButton} className={classes.idButton}
@ -325,6 +320,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}>