@@ -8,7 +8,15 @@ import { StackedLinePlot } from "./components/StackedLinePlot";
8
8
import Pagination from "../../Common/Pagination" ;
9
9
import { PAGINATION_LIMIT } from "../../../Common/constants" ;
10
10
11
- export const PrimaryParametersPlot = ( props : any ) => {
11
+ interface PrimaryParametersPlotProps {
12
+ facilityId : string ;
13
+ patientId : string ;
14
+ consultationId : string ;
15
+ }
16
+
17
+ export const PrimaryParametersPlot = ( {
18
+ consultationId,
19
+ } : PrimaryParametersPlotProps ) => {
12
20
const dispatch : any = useDispatch ( ) ;
13
21
const [ results , setResults ] = useState ( { } ) ;
14
22
const [ currentPage , setCurrentPage ] = useState ( 1 ) ;
@@ -35,7 +43,7 @@ export const PrimaryParametersPlot = (props: any) => {
35
43
"rhythm_detail" ,
36
44
] ,
37
45
} ,
38
- props . consultationId
46
+ { consultationId }
39
47
)
40
48
) ;
41
49
if ( ! status . aborted ) {
@@ -45,14 +53,14 @@ export const PrimaryParametersPlot = (props: any) => {
45
53
}
46
54
}
47
55
} ,
48
- [ props . consultationId , dispatch , currentPage ]
56
+ [ consultationId , dispatch , currentPage ]
49
57
) ;
50
58
51
59
useAbortableEffect (
52
60
( status : statusType ) => {
53
61
fetchDailyRounds ( status ) ;
54
62
} ,
55
- [ props . consultationId , currentPage ]
63
+ [ consultationId , currentPage ]
56
64
) ;
57
65
58
66
const handlePagination = ( page : number ) => {
0 commit comments