| 
					
				 | 
			
			
				@@ -4,6 +4,7 @@ import moment from "moment"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { Col, FormGroup } from "reactstrap"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { useSelector } from "react-redux"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { getPT } from "@/actions/PT"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { API_URL } from "@/env"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function DetailLaporan({ data, noTitle = false, noStatus = false }) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	const user = useSelector((state) => state.user); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -43,7 +44,7 @@ function DetailLaporan({ data, noTitle = false, noStatus = false }) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							<FormGroup row> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								<Col md="4">Foto Kartu Identitas:</Col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								<Col md="8"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-									<img src={`data:${data.user_id.files[0].type};base64, ${Buffer.from(data.user_id.files[0].data).toString("base64")}`} height={200} alt="Foto Identitas" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+									<img src={API_URL + data.user_id.files[0].path} height={200} alt="Foto Identitas" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								</Col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							</FormGroup> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						</> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -112,7 +113,7 @@ function DetailLaporan({ data, noTitle = false, noStatus = false }) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 												<em className="fa-lg far fa-file-code"></em> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 											</td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 											<td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-												<a className="text-muted" href={`data:${e.type};base64, ${Buffer.from(e.data).toString("base64")}`} download={e.name}> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+												<a className="text-muted" href={API_URL + e.path} target="_blank" download={e.name}> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 													{e.name} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 												</a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 											</td> 
			 |