Merge pull request #1141 from ubavic/add-front-photo-date
fix: missing ID photo date
This commit is contained in:
commit
4d04298f6a
4 changed files with 16 additions and 15 deletions
|
|
@ -20,6 +20,7 @@ const typeDef = gql`
|
|||
idCardPhoto: UploadGQL
|
||||
idCardPhotoPath: String
|
||||
idCardPhotoOverride: String
|
||||
idCardPhotoAt: Date
|
||||
usSsn: String
|
||||
usSsnOverride: String
|
||||
sanctions: Boolean
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ export const PhotoCard = ({
|
|||
<div className={classes.footer}>
|
||||
<CameraIcon />
|
||||
<Label2 className={classes.date}>
|
||||
{date ? format('yyyy-MM-dd', new Date(date)) : 'ID card image'}
|
||||
{format('yyyy-MM-dd', new Date(date))}
|
||||
</Label2>
|
||||
</div>
|
||||
</Paper>
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ const GET_CUSTOMER = gql`
|
|||
idCardDataExpiration
|
||||
idCardPhotoPath
|
||||
idCardPhotoOverride
|
||||
idCardPhotoAt
|
||||
usSsn
|
||||
usSsnOverride
|
||||
sanctions
|
||||
|
|
@ -498,7 +499,8 @@ const CustomerProfile = memo(() => {
|
|||
? [
|
||||
{
|
||||
photoDir: 'id-card-photo',
|
||||
path: customerData.idCardPhotoPath
|
||||
path: customerData.idCardPhotoPath,
|
||||
date: customerData.idCardPhotoAt
|
||||
}
|
||||
]
|
||||
: []
|
||||
|
|
|
|||
|
|
@ -38,19 +38,17 @@ const PhotosCarousel = memo(({ photosData, timezone }) => {
|
|||
)}
|
||||
<div className={classes.secondRow}>
|
||||
<div>
|
||||
{photosData[currentIndex].date && (
|
||||
<>
|
||||
<Label>Date</Label>
|
||||
<div>
|
||||
{photosData &&
|
||||
formatDate(
|
||||
photosData[currentIndex]?.date,
|
||||
timezone,
|
||||
'yyyy-MM-dd HH:mm'
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
<>
|
||||
<Label>Date</Label>
|
||||
<div>
|
||||
{photosData &&
|
||||
formatDate(
|
||||
photosData[currentIndex]?.date,
|
||||
timezone,
|
||||
'yyyy-MM-dd HH:mm'
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
</div>
|
||||
<div>
|
||||
<Label>Taken by</Label>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue