diff --git a/src/FilterLists.Web/ClientApp/components/Home.tsx b/src/FilterLists.Web/ClientApp/components/Home.tsx index 00042886f..c00bfa6cc 100644 --- a/src/FilterLists.Web/ClientApp/components/Home.tsx +++ b/src/FilterLists.Web/ClientApp/components/Home.tsx @@ -13,10 +13,18 @@ interface IFilterListsState { export class Home extends React.Component, IFilterListsState> { constructor(props: any) { super(props); - this.state = { filterLists: [], loading: true }; + this.state = { + filterLists: [], + loading: true + }; fetch("https://api.filterlists.com/v1/lists") .then(response => response.json() as Promise) - .then(data => { this.setState({ filterLists: data, loading: false }); }); + .then(data => { + this.setState({ + filterLists: data, + loading: false + }); + }); } render() { @@ -33,20 +41,20 @@ export class Home extends React.Component, IFilterListsS private static renderFilterListsTable(filterLists: IFilterListSummaryDto[]) { return row[filter.id].toUpperCase().includes(filter.value.toUpperCase()), - sortMethod: (a: any, b: any) => a.toUpperCase() > b.toUpperCase() ? 1 : -1 + sortMethod: (a: any, b: any) => a.toUpperCase() > b.toUpperCase() ? 1 : -1 }, { Header: "Details", accessor: "id", sortable: false, - Cell: (cell: any) => , + Cell: (cell: any) => , style: { textAlign: "center" }, width: 100 }, @@ -54,7 +62,7 @@ export class Home extends React.Component, IFilterListsS Header: "Subscribe", accessor: "viewUrl", sortable: false, - Cell: (cell: any) => , + Cell: (cell: any) => , style: { textAlign: "center" }, width: 100, headerClassName: "hidden-xs",