|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import { InputAdornment, TextField } from '@mui/material';
|
|
|
|
|
import { FileDownload } from '@mui/icons-material';
|
|
|
|
|
import { FileDownload, Info } from '@mui/icons-material';
|
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
|
|
const ImageFileViewForm = ({ labelName = '', fileName, methodName = '', handleViewImg = () => {} }) => (
|
|
|
|
@ -11,12 +11,12 @@ const ImageFileViewForm = ({ labelName = '', fileName, methodName = '', handleVi
|
|
|
|
|
fullWidth
|
|
|
|
|
label={labelName}
|
|
|
|
|
value={fileName}
|
|
|
|
|
onClick={() => handleViewImg(methodName)}
|
|
|
|
|
onClick={() => handleViewImg(methodName, labelName, fileName)}
|
|
|
|
|
InputProps={{
|
|
|
|
|
display: 'none',
|
|
|
|
|
endAdornment: (
|
|
|
|
|
<InputAdornment position="end">
|
|
|
|
|
<FileDownload stroke={1.5} size="1rem" cursor="pointer" />
|
|
|
|
|
<Info stroke={1.5} size="1rem" cursor="pointer" sx={{ color: 'rgba(255, 255, 255, 0.54)' }} />
|
|
|
|
|
</InputAdornment>
|
|
|
|
|
)
|
|
|
|
|
}}
|
|
|
|
|