From ea5ae4b37fc59c0dae15a5951322d109ddbfc5a3 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Thu, 7 Jun 2018 13:47:15 -0500 Subject: [PATCH] cleanup tagline rendering ref #272 --- src/FilterLists.Web/ClientApp/components/Home.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/FilterLists.Web/ClientApp/components/Home.tsx b/src/FilterLists.Web/ClientApp/components/Home.tsx index 529f236ce..10b12ef87 100644 --- a/src/FilterLists.Web/ClientApp/components/Home.tsx +++ b/src/FilterLists.Web/ClientApp/components/Home.tsx @@ -29,7 +29,7 @@ export class Home extends React.Component, IHomeState> { Loading...

:
- {Home.renderTagline(this.state.lists, this.state.ruleCount)} + {Home.renderTagline(this.state)} {Home.renderFilterListsTable(this.state.lists)}
; return
@@ -56,9 +56,11 @@ export class Home extends React.Component, IHomeState> { }); } - private static renderTagline(filterLists: IListDto[], ruleCount: number) { + private static renderTagline(state: IHomeState) { return

- The independent, comprehensive directory of {ruleCount} unique rules across {filterLists.length} filter and host lists for advertisements, trackers, malware, and annoyances. + The independent, comprehensive directory of {state.ruleCount + } unique rules across {state.lists.length + } filter and host lists for advertisements, trackers, malware, and annoyances.

; }