feature: clickable filter link (#81)

This commit is contained in:
Ludvig Lundgren 2022-01-13 22:17:23 +01:00 committed by GitHub
parent 47031358b0
commit dbf7ce0deb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 1 deletions

View file

@ -401,6 +401,12 @@ export function ReleaseCell({ value, column, row }: any) {
)
}
export function IndexerCell({ value, column, row }: any) {
return (
<div className="text-sm font-medium text-gray-900 dark:text-gray-500" title={value}>{value}</div>
)
}
function Table({ columns, data }: any) {
// Use the state and functions returned from useTable to build your UI
const {
@ -668,6 +674,7 @@ function DataTablee() {
{
Header: "Indexer",
accessor: 'indexer',
Cell: IndexerCell,
Filter: SelectColumnFilter, // new
filter: 'includes',
},