From a90050329893e8add302a83eec8bff9e4942ed1a Mon Sep 17 00:00:00 2001 From: Collin Barrett Date: Mon, 3 Sep 2018 13:43:12 -0500 Subject: [PATCH] hide Last Updated in details expander if Discontinued is non-null closes #414 --- src/FilterLists.Web/ClientApp/components/ListDetails.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FilterLists.Web/ClientApp/components/ListDetails.tsx b/src/FilterLists.Web/ClientApp/components/ListDetails.tsx index 286426a1a..81530194b 100644 --- a/src/FilterLists.Web/ClientApp/components/ListDetails.tsx +++ b/src/FilterLists.Web/ClientApp/components/ListDetails.tsx @@ -33,7 +33,7 @@ export default class ListDetails extends React.Component { } //https://stackoverflow.com/a/11868398/2343739 - public static getContrast(hexcolor: string) { + static getContrast(hexcolor: string) { const r = parseInt(hexcolor.substr(0, 2), 16); const g = parseInt(hexcolor.substr(2, 2), 16); const b = parseInt(hexcolor.substr(4, 2), 16); @@ -66,7 +66,7 @@ function ListInfo(props: any) { - + {props.details.discontinuedDate ? null : } @@ -142,7 +142,7 @@ function DiscontinuedDate(props: any) { function UpdatedDate(props: any) { return props.date ?
  • -

    Last Updated: {moment(props.date).isValid() ? moment(props.date).format("l") : "N/A"}

    +

    Updated: {moment(props.date).isValid() ? moment(props.date).format("l") : "N/A"}

  • : null; }