feat: photo roll dialog

This commit is contained in:
José Oliveira 2021-08-02 15:32:49 +01:00
parent 5dc82af9ad
commit 4f7960a59c
3 changed files with 44 additions and 30 deletions

View file

@ -64,7 +64,7 @@ const PhotosCard = memo(({ frontCameraPath, txData }) => {
</Paper>
<InformativeDialog
open={photosDialog}
title={`Photos roll`}
title={`Photo roll`}
data={<PhotosCarousel txData={txData}></PhotosCarousel>}
onDissmised={() => {
setPhotosDialog(false)
@ -79,6 +79,15 @@ export const PhotosCarousel = memo(({ txData }) => {
return (
<>
<div className={classes.carousel}>
<img
className={classes.carouselImg}
src={`${URI}/operator-data/customersphotos/${
R.head(txData)?.txCustomerPhotoPath
}`}
alt=""
/>
</div>
<div className={classes.firstRow}>
<div>
<div>