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

Loading…
Cancel
Save