|  | @@ -3,7 +3,7 @@ import { insertPemeriksaan } from "@/actions/pemeriksaan";
 | 
	
		
			
				|  |  |  import Router from "next/router";
 | 
	
		
			
				|  |  |  import Datetime from "react-datetime";
 | 
	
		
			
				|  |  |  import moment from "moment";
 | 
	
		
			
				|  |  | -import { Row, Col, FormGroup, Input, Button } from "reactstrap";
 | 
	
		
			
				|  |  | +import { Row, Col, FormGroup, Input, Button, Progress } from "reactstrap";
 | 
	
		
			
				|  |  |  import { ToastContainer, toast } from "react-toastify";
 | 
	
		
			
				|  |  |  import { Formik, Form, Field, ErrorMessage } from "formik";
 | 
	
		
			
				|  |  |  import * as Yup from "yup";
 | 
	
	
		
			
				|  | @@ -163,10 +163,22 @@ class InputEvaluasi extends Component {
 | 
	
		
			
				|  |  |  	render() {
 | 
	
		
			
				|  |  |  		const { files } = this.state;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +		const removeFile = file => () => {
 | 
	
		
			
				|  |  | +			const newFiles = [...files]
 | 
	
		
			
				|  |  | +			newFiles.splice(newFiles.indexOf(file), 1)
 | 
	
		
			
				|  |  | +			this.setState({
 | 
	
		
			
				|  |  | +				files: newFiles,
 | 
	
		
			
				|  |  | +			});
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  |  		const thumbs = files.map((file, index) => (
 | 
	
		
			
				|  |  |  			<div md={3} key={index}>
 | 
	
		
			
				|  |  | -				{/* <img className="img-fluid mb-2" src={file.preview} alt="Item" /> */}
 | 
	
		
			
				|  |  | -				<span className="text-left">{index + 1}.{file.name}</span>
 | 
	
		
			
				|  |  | +				<div className="text-left">{file.name}</div>
 | 
	
		
			
				|  |  | +				<div><button className="bg-transparent button-transparent border-0 float-right" onClick={removeFile(file)}>
 | 
	
		
			
				|  |  | +					<em className="fas fa-trash"></em>
 | 
	
		
			
				|  |  | +				</button><Progress color="info" value={100}>Success</Progress>
 | 
	
		
			
				|  |  | +				</div>
 | 
	
		
			
				|  |  | +				<span className="float-right">
 | 
	
		
			
				|  |  | +				</span>
 | 
	
		
			
				|  |  |  			</div>
 | 
	
		
			
				|  |  |  		));
 | 
	
		
			
				|  |  |  		return (
 | 
	
	
		
			
				|  | @@ -224,7 +236,10 @@ class InputEvaluasi extends Component {
 | 
	
		
			
				|  |  |  													<div {...getRootProps()} className={"dropzone card" + (isDragActive ? "dropzone-drag-active" : "")}>
 | 
	
		
			
				|  |  |  														<input name="dokumen" {...getInputProps()} />
 | 
	
		
			
				|  |  |  														<div className="dropzone-style-1">
 | 
	
		
			
				|  |  | -															<div className="center-ver-hor dropzone-previews flex">{this.state.files.length > 0 ? <Row><span className="text-left">{thumbs}</span></Row> :
 | 
	
		
			
				|  |  | +															<div className="center-ver-hor dropzone-previews flex">{this.state.files.length > 0 ?
 | 
	
		
			
				|  |  | +																<div className="text-center fa-2x icon-cloud-upload mr-2 ">
 | 
	
		
			
				|  |  | +																	<h5 className="text-center dz-default dz-message">Klik untuk tambah file</h5>
 | 
	
		
			
				|  |  | +																</div> :
 | 
	
		
			
				|  |  |  																<div className="text-center fa-2x icon-cloud-upload mr-2 ">
 | 
	
		
			
				|  |  |  																	<h5 className="text-center dz-default dz-message">Klik untuk upload dokumen</h5>
 | 
	
		
			
				|  |  |  																</div>
 | 
	
	
		
			
				|  | @@ -251,8 +266,11 @@ class InputEvaluasi extends Component {
 | 
	
		
			
				|  |  |  										</DropzoneWrapper>
 | 
	
		
			
				|  |  |  									)}
 | 
	
		
			
				|  |  |  								</Field>
 | 
	
		
			
				|  |  | +								<div>
 | 
	
		
			
				|  |  | +									{thumbs}
 | 
	
		
			
				|  |  | +								</div>
 | 
	
		
			
				|  |  |  								<ErrorMessage name="dokumen" component="div" className="form-text text-danger" />
 | 
	
		
			
				|  |  | -								<p className="mrgn-top-5">
 | 
	
		
			
				|  |  | +								<p className="mrgn-top-5 font-color-black">
 | 
	
		
			
				|  |  |  									Ukuran setiap dokumen maksimal 15mb
 | 
	
		
			
				|  |  |  								</p>
 | 
	
		
			
				|  |  |  							</div>
 |