Skip to content

Commit

Permalink
examples: fx broken pagination example (#4080)
Browse files Browse the repository at this point in the history
* Fix broken pagination example

* remove unused import

Co-authored-by: Subba Rao Pasupuleti <spasupuleti4@bloomberg.net>
  • Loading branch information
subbarao and Subba Rao Pasupuleti committed Jul 1, 2022
1 parent 65d3896 commit be72ce7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/react/pagination/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import ReactDOM from 'react-dom/client'
import './index.css'

import {
createTable,
Column,
Table,
Table as ReactTable,
PaginationState,
useReactTable,
getCoreRowModel,
Expand Down Expand Up @@ -246,7 +245,7 @@ function Table({
</div>
)
}
function Filter({ column, table }: { column: Column<any>; table: Table<any> }) {
function Filter({ column, table }: { column: Column<any>; table: ReactTable<any> }) {
const firstValue = table
.getPreFilteredRowModel()
.flatRows[0]?.getValue(column.id)
Expand Down

0 comments on commit be72ce7

Please sign in to comment.