Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15269 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 15269 Rev 15270
Línea 61... Línea 61...
61
		setFiles(files.filter(file => file !== id))
61
		setFiles(files.filter(file => file !== id))
62
	}
62
	}
Línea 63... Línea 63...
63
 
63
 
64
	const filePreviewOptions = (modalType, file) => {
64
	const filePreviewOptions = (modalType, file) => {
65
		const options = {
65
		const options = {
66
			IMAGE: <img src={URL.createObjectURL(file)} style={imgStyle} width='100%' />,
66
			IMAGE: <img src={URL.createObjectURL(file)} style={imgStyle} />,
67
			FILE: <object data={URL.createObjectURL(file)} type="application/pdf" width="400" height="200" />,
67
			FILE: <object data={URL.createObjectURL(file)} type="application/pdf" width="400" height="200" />,
68
			VIDEO: <video src={URL.createObjectURL(file)} width="400" height="300" controls autoPlay muted />
68
			VIDEO: <video src={URL.createObjectURL(file)} width="400" height="300" controls autoPlay muted />
Línea 69... Línea 69...
69
		}
69
		}