Skip to content

Commit

Permalink
fix: Tusk automated feedback for automated check failure
Browse files Browse the repository at this point in the history
  • Loading branch information
use-tusk[bot] authored Oct 16, 2024
1 parent 0834ec3 commit 1c97c25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion web/components/templates/requestsV2/RequestsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import {
Column,
UsePaginationInstanceProps,
UseSortByInstanceProps,
TableState,
TableInstance,
} from "react-table";

interface Request {
Expand Down Expand Up @@ -71,7 +73,7 @@ const RequestsTable: React.FC<RequestsTableProps> = ({ requests }) => {
{
columns,
data,
initialState: { pageIndex: 0 },
initialState: { pageIndex: 0 } as Partial<TableState<Request>>,
},
useSortBy,
usePagination
Expand Down
4 changes: 3 additions & 1 deletion web/types/react-table.d.ts
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import {
UseTableInstanceProps,
UsePaginationInstanceProps,
UseSortByInstanceProps,
TableState as ReactTableState,
} from "react-table";

declare module "react-table" {
export interface TableInstance<D extends object = {}>
extends UseTableInstanceProps<D>,
UsePaginationInstanceProps<D>,
UseSortByInstanceProps<D> {}

export type TableState<D extends object = {}> = ReactTableState<D>;
}
\

0 comments on commit 1c97c25

Please sign in to comment.