diff --git a/src/FilterLists.Web/ClientApp/components/Home.tsx b/src/FilterLists.Web/ClientApp/components/Home.tsx index bcf58ed49..a17e3f2cd 100644 --- a/src/FilterLists.Web/ClientApp/components/Home.tsx +++ b/src/FilterLists.Web/ClientApp/components/Home.tsx @@ -122,6 +122,35 @@ export class Home extends React.Component, IHomeState> { headerClassName: "d-none d-md-block", className: "d-none d-md-block" }, + { + Header: "Software", + accessor: "software", + filterable: true, + filterMethod: (filter: any, row: any) => { + if (filter.value === "all") { + return true; + } + if (filter.value === "true") { + return row[filter.id] >= 21; + } + return row[filter.id] < 21; + }, + Filter: ({ filter, onChange }) => + , + Cell: (cell: any) =>
{cell.value.map( + (e: any) => {e})}
, + style: { whiteSpace: "inherit" }, + width: 150, + headerClassName: "d-none d-md-block", + className: "d-none d-md-block" + }, { Header: "Updated", accessor: "updatedDate", @@ -172,6 +201,7 @@ interface IListDto { id: number; name: string; languages: IListLanguageDto[]; + software: string[]; tags: IListTagDto[]; updatedDate: string; }