From 1c97c25e8024d89ea49b9b2e4c63d20409ae5b23 Mon Sep 17 00:00:00 2001 From: "use-tusk[bot]" <144006087+use-tusk[bot]@users.noreply.github.com> Date: Wed, 16 Oct 2024 20:29:55 +0000 Subject: [PATCH] fix: Tusk automated feedback for automated check failure --- web/components/templates/requestsV2/RequestsTable.tsx | 4 +++- web/types/react-table.d.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) mode change 100755 => 100644 web/types/react-table.d.ts diff --git a/web/components/templates/requestsV2/RequestsTable.tsx b/web/components/templates/requestsV2/RequestsTable.tsx index b9d97981a4..52df423e41 100644 --- a/web/components/templates/requestsV2/RequestsTable.tsx +++ b/web/components/templates/requestsV2/RequestsTable.tsx @@ -6,6 +6,8 @@ import { Column, UsePaginationInstanceProps, UseSortByInstanceProps, + TableState, + TableInstance, } from "react-table"; interface Request { @@ -71,7 +73,7 @@ const RequestsTable: React.FC = ({ requests }) => { { columns, data, - initialState: { pageIndex: 0 }, + initialState: { pageIndex: 0 } as Partial>, }, useSortBy, usePagination diff --git a/web/types/react-table.d.ts b/web/types/react-table.d.ts old mode 100755 new mode 100644 index 675166d564..cf5cd0faa4 --- a/web/types/react-table.d.ts +++ b/web/types/react-table.d.ts @@ -2,6 +2,7 @@ import { UseTableInstanceProps, UsePaginationInstanceProps, UseSortByInstanceProps, + TableState as ReactTableState, } from "react-table"; declare module "react-table" { @@ -9,5 +10,6 @@ declare module "react-table" { extends UseTableInstanceProps, UsePaginationInstanceProps, UseSortByInstanceProps {} + + export type TableState = ReactTableState; } -\