Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let value = row._original[col.id]
if (matchers[col.id](value)) {
return true
}
}
})
return rows
}
}
filterColumns = allVisibleColumns.concat(searchColumn)
}
return this.oldFilterData(data, filtered, defaultFilterMethod, filterColumns)
}
// Table component with a search input
const DefaultTableComponent = ReactTableDefaults.TableComponent
const SearchTableComponent = ({ searchValue, onSearchChange, ...rest }) => {
const searchInput = (
<input aria-label="Search" placeholder="Search" value="{searchValue}" type="text">
)
return (
{searchInput}