From e1e56803ba48e16f423cc3e4f710251389cf0fed Mon Sep 17 00:00:00 2001 From: Collin Barrett Date: Sat, 24 Mar 2018 16:29:51 -0500 Subject: [PATCH] add License to list details in UI --- .../ClientApp/components/ListDetails.tsx | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/FilterLists.Web/ClientApp/components/ListDetails.tsx b/src/FilterLists.Web/ClientApp/components/ListDetails.tsx index 3dddb8a63..06941f5c8 100644 --- a/src/FilterLists.Web/ClientApp/components/ListDetails.tsx +++ b/src/FilterLists.Web/ClientApp/components/ListDetails.tsx @@ -38,6 +38,7 @@ function FilterListDetails(props: any) { +
@@ -66,14 +67,14 @@ function Languages(props: any) { return props.languages.length > 0 ? props.languages.length > 1 ?
-

Languages:

+

Languages:

    {props.languages.map( (language: any) =>
  • {language}
  • )}
:
-

Language:

+

Language:

    {props.languages.map( (language: any) =>
  • {language}
  • )} @@ -90,6 +91,14 @@ function DiscontinuedDate(props: any) { return props.date ?

    Discontinued: {props.date}

    : null; } +function License(props: any) { + return props.license + ? (props.license.descriptionUrl + ?

    License: {props.license.name}

    + :

    License: {props.license.name}

    ) + : null; +} + function SubscribeUrl(props: any) { return