Skip to content

Commit

Permalink
feat: use the title from the column header by default
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Murray <hellomikemurray@gmail.com>
  • Loading branch information
mikemurray committed Sep 30, 2019
1 parent 0f5fa87 commit a287e3c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import DataTableFilter from "../DataTableFilter";
*/
export default function makeDataTableColumnFilter(props) {
const DataTableColumnFilter = ({
column: { filterValue, setFilter },
column: { Header, filterValue, setFilter },
container,
className
}) => (
<DataTableFilter
title="Filter"
title={typeof Header === "string" ? Header : "Filter"}
className={className}
container={container}
onSelect={(value) => setFilter(value)}
Expand Down

0 comments on commit a287e3c

Please sign in to comment.