@@ -6,15 +6,15 @@ import { PipelineRunOvervieweParams } from "@/types/pipeline-runs";
6
6
import { Button , DataTable , Skeleton } from "@zenml-io/react-component-library" ;
7
7
import { RunsButtonGroup } from "./ButtonGroup" ;
8
8
import { runsColumns } from "./columns" ;
9
- import { useRunsSelectorContext } from "./RunsSelectorContext " ;
9
+ import { useRunsDataTableContext } from "./RunsDataTableContext " ;
10
10
import { useRunsOverviewSearchParams } from "./service" ;
11
11
12
12
type Props = {
13
13
fixedQueryParams ?: PipelineRunOvervieweParams ;
14
14
} ;
15
15
16
16
export function RunsBody ( { fixedQueryParams = { } } : Props ) {
17
- const { selectedRuns } = useRunsSelectorContext ( ) ;
17
+ const { selectedRowIDs } = useRunsDataTableContext ( ) ;
18
18
const queryParams = useRunsOverviewSearchParams ( ) ;
19
19
const { data, refetch } = useAllPipelineRuns ( {
20
20
params : {
@@ -27,7 +27,7 @@ export function RunsBody({ fixedQueryParams = {} }: Props) {
27
27
return (
28
28
< div className = "mt-5 flex flex-col gap-5" >
29
29
< div className = "flex items-center justify-between" >
30
- { selectedRuns . length ? < RunsButtonGroup /> : < SearchField searchParams = { queryParams } /> }
30
+ { selectedRowIDs . length ? < RunsButtonGroup /> : < SearchField searchParams = { queryParams } /> }
31
31
< div className = "flex justify-between" >
32
32
< Button intent = "primary" emphasis = "subtle" size = "md" onClick = { ( ) => refetch ( ) } >
33
33
< Refresh className = "h-5 w-5 fill-theme-text-brand" />
0 commit comments