File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
common/src/ui/layout/tables
NotificationEvents/ListView Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export interface TableProps<T extends RecordWithId> {
25
25
isLoading ?: boolean ;
26
26
noDataMessage ?: string ;
27
27
noDataElement ?: JSX . Element ;
28
- pagination ?: Pagination & { total ? : number } ;
28
+ pagination ?: Pagination & { total : number | undefined } ;
29
29
onChangePage ?: ( page : number ) => void ;
30
30
onRowClick ?: null | ( ( row : T ) => void ) ;
31
31
}
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ export const ListView = ({}: ListViewProps) => {
93
93
page : queryParams . page ,
94
94
offset : queryParams . offset ,
95
95
first : queryParams . first ,
96
+ total : data ?. totalCount ,
96
97
} ;
97
98
98
99
return (
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ export const ListView = ({ kind }: ListViewProps) => {
86
86
page : queryParams . page ,
87
87
offset : queryParams . offset ,
88
88
first : queryParams . first ,
89
+ total : data ?. totalCount ,
89
90
} ;
90
91
91
92
return (
You can’t perform that action at this time.
0 commit comments