|  | @@ -6,9 +6,8 @@ import { ChartSpline, ChartArea, ChartBar, ChartBarStacked, ChartDonut, ChartLin
 | 
	
		
			
				|  |  |  import Datatable from "@/components/Tables/Datatable";
 | 
	
		
			
				|  |  |  import { useState, useEffect } from "react";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -function CaseProgress({ data }) {
 | 
	
		
			
				|  |  | +function CaseProgress({ data, nextButton, prevButton, tahun, newLaporan }) {
 | 
	
		
			
				|  |  |  	const laporan_pertahun = data.laporan_perTahun;
 | 
	
		
			
				|  |  | -	const laporan_terbaru = data.newLaporan;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	const [chartData, setChartData] = useState([
 | 
	
		
			
				|  |  |  		{
 | 
	
	
		
			
				|  | @@ -67,7 +66,6 @@ function CaseProgress({ data }) {
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  	};
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  	const ChartPie = {
 | 
	
		
			
				|  |  |  		data: [
 | 
	
		
			
				|  |  |  			{
 | 
	
	
		
			
				|  | @@ -112,13 +110,13 @@ function CaseProgress({ data }) {
 | 
	
		
			
				|  |  |  		<div className="card b">
 | 
	
		
			
				|  |  |  			<div className="card-body bb">
 | 
	
		
			
				|  |  |  				<div className="margin-botton-20 text-tahun">
 | 
	
		
			
				|  |  | -					<Button className="float-left button-hidden icon-next">
 | 
	
		
			
				|  |  | +					<Button className="float-left button-hidden icon-next" onClick={prevButton}>
 | 
	
		
			
				|  |  |  						<img src="/static/img/previous.png"></img>
 | 
	
		
			
				|  |  |  					</Button>
 | 
	
		
			
				|  |  | -					<Button className="float-left button-hidden icon-next">
 | 
	
		
			
				|  |  | +					<Button className="float-left button-hidden icon-next" onClick={nextButton}>
 | 
	
		
			
				|  |  |  						<img src="/static/img/next.png"></img>
 | 
	
		
			
				|  |  |  					</Button>
 | 
	
		
			
				|  |  | -					<b className="text-tahun">Tahun 2022 </b>
 | 
	
		
			
				|  |  | +					<b className="text-tahun">Tahun {tahun} </b>
 | 
	
		
			
				|  |  |  					<Button className="float-right button-hidden icon-eksport">
 | 
	
		
			
				|  |  |  						<img src="/static/img/Eksport.png"></img>
 | 
	
		
			
				|  |  |  					</Button>
 | 
	
	
		
			
				|  | @@ -140,7 +138,7 @@ function CaseProgress({ data }) {
 | 
	
		
			
				|  |  |  				<div className="header-1">
 | 
	
		
			
				|  |  |  					<h2 className="card-title-1">Laporan Terbaru</h2>
 | 
	
		
			
				|  |  |  				</div>
 | 
	
		
			
				|  |  | -				{laporan_terbaru.map((value) => (
 | 
	
		
			
				|  |  | +				{newLaporan.map((value) => (
 | 
	
		
			
				|  |  |  					<h5 className="card-title text-left py-2 bg-gray border-radius-login">
 | 
	
		
			
				|  |  |  						<b className="f-size">{`${value.no_laporan} - ${value.pt.nama}`}</b>
 | 
	
		
			
				|  |  |  					</h5>
 |