fix, bug que cambia la pantalla cuando se intenta descargar un zip

feature/ConsolidarPedimentos_20231229
Felix Morales 1 year ago
parent 41ee6e5c6c
commit 635d5ed824
  1. 8
      src/Components/Utils/FileManager/FileManager.tsx

@ -39,6 +39,7 @@ export const FileManager: FC<IProps> = (props) => {
const [msg, setMsg] = useState('')
const URL = new TargetURL()
const msgColor = 'primary'
const [LinkColor, setLinkColor] = useState<string>('#0d6efd');
const onDrop = useCallback(
(acceptedFiles: any) => {
@ -204,14 +205,15 @@ export const FileManager: FC<IProps> = (props) => {
<Row>
<Col xs={11}>
<span style={{ fontWeight: 'bold' }}>{props.Prefijo ? props.Prefijo : 'Archivo'}</span> : &nbsp;
<a
href='#'
<span style={{textDecoration:'underline', color:LinkColor, cursor:'pointer'}}
onClick={() => {
getFileContent()
}}
onMouseEnter={() => {setLinkColor('blue')}}
onMouseLeave={() => {setLinkColor('#0d6efd')}}
>
{Archivo?.nombreArchivo}
</a>
</span>
</Col>
<Col xs={1} style={{ visibility: props.canDelete ? 'visible' : 'hidden' }}>
<IconContext.Provider value={{ color: 'red', size: '20px' }}>

Loading…
Cancel
Save