|
|
@ -1,5 +1,5 @@
|
|
|
|
import { InputAdornment, TextField } from '@mui/material';
|
|
|
|
import { InputAdornment, TextField } from '@mui/material';
|
|
|
|
import { FileDownload } from '@mui/icons-material';
|
|
|
|
import { FileDownload, Info } from '@mui/icons-material';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
|
|
|
|
const ImageFileViewForm = ({ labelName = '', fileName, methodName = '', handleViewImg = () => {} }) => (
|
|
|
|
const ImageFileViewForm = ({ labelName = '', fileName, methodName = '', handleViewImg = () => {} }) => (
|
|
|
@ -11,12 +11,12 @@ const ImageFileViewForm = ({ labelName = '', fileName, methodName = '', handleVi
|
|
|
|
fullWidth
|
|
|
|
fullWidth
|
|
|
|
label={labelName}
|
|
|
|
label={labelName}
|
|
|
|
value={fileName}
|
|
|
|
value={fileName}
|
|
|
|
onClick={() => handleViewImg(methodName)}
|
|
|
|
onClick={() => handleViewImg(methodName, labelName, fileName)}
|
|
|
|
InputProps={{
|
|
|
|
InputProps={{
|
|
|
|
display: 'none',
|
|
|
|
display: 'none',
|
|
|
|
endAdornment: (
|
|
|
|
endAdornment: (
|
|
|
|
<InputAdornment position="end">
|
|
|
|
<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>
|
|
|
|
</InputAdornment>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|