@@ -9,7 +9,7 @@ import CheckIcon from '@mui/icons-material/Check';
99import ConfirmationNumberIcon from '@mui/icons-material/ConfirmationNumber' ;
1010import DeleteIcon from '@mui/icons-material/Delete' ;
1111import LocalShippingIcon from '@mui/icons-material/LocalShipping' ;
12- import { Grid , Typography , useTheme } from '@mui/material' ;
12+ import { Grid , Typography , useTheme , Link , IconButton } from '@mui/material' ;
1313import { Box } from '@mui/system' ;
1414import { useState } from 'react' ;
1515import { useHistory } from 'react-router-dom' ;
@@ -30,6 +30,7 @@ import {
3030 undefinedPipe
3131} from '../../../utils/pipes' ;
3232import {
33+ imageDownloadUrl ,
3334 imagePreviewUrl ,
3435 isReimbursementRequestAdvisorApproved ,
3536 isReimbursementRequestSaboSubmitted
@@ -38,6 +39,7 @@ import { routes } from '../../../utils/routes';
3839import AddSABONumberModal from './AddSABONumberModal' ;
3940import ReimbursementProductsView from './ReimbursementProductsView' ;
4041import SubmitToSaboModal from './SubmitToSaboModal' ;
42+ import DownloadIcon from '@mui/icons-material/Download' ;
4143
4244interface ReimbursementRequestDetailsViewProps {
4345 reimbursementRequest : ReimbursementRequest ;
@@ -175,11 +177,19 @@ const ReimbursementRequestDetailsView: React.FC<ReimbursementRequestDetailsViewP
175177 < Typography variant = "h5" > Receipts</ Typography >
176178 { reimbursementRequest . receiptPictures . map ( ( receipt ) => {
177179 return (
178- < iframe
179- style = { { height : `200px` , width : '50%' } }
180- src = { imagePreviewUrl ( receipt . googleFileId ) }
181- title = { receipt . name }
182- />
180+ < Box >
181+ < Link href = { receipt . googleFileId } target = "_blank" underline = "hover" fontSize = { 19 } >
182+ { receipt . name }
183+ </ Link >
184+ < IconButton href = { imageDownloadUrl ( receipt . googleFileId ) } >
185+ < DownloadIcon />
186+ </ IconButton >
187+ < iframe
188+ style = { { height : `200px` , width : '50%' } }
189+ src = { imagePreviewUrl ( receipt . googleFileId ) }
190+ title = { receipt . name }
191+ />
192+ </ Box >
183193 ) ;
184194 } ) }
185195 </ Box >
0 commit comments