From 7d137d53db29ea4e0f462bc52985a75bd3b0980f Mon Sep 17 00:00:00 2001 From: Collin Barrett Date: Sat, 17 Feb 2018 10:49:37 -0600 Subject: [PATCH] more modal work --- .../ClientApp/components/ListDetailsModal.tsx | 58 +++++++++++++------ 1 file changed, 40 insertions(+), 18 deletions(-) diff --git a/src/FilterLists.Web/ClientApp/components/ListDetailsModal.tsx b/src/FilterLists.Web/ClientApp/components/ListDetailsModal.tsx index 9f84a8c93..277f75bc9 100644 --- a/src/FilterLists.Web/ClientApp/components/ListDetailsModal.tsx +++ b/src/FilterLists.Web/ClientApp/components/ListDetailsModal.tsx @@ -49,8 +49,10 @@ function FilterListDetails(props: any) { - - + + + + ; } @@ -58,6 +60,18 @@ function Name(props: any) { return

{props.name}

; } +function Description(props: any) { + if (props.description) { + if (props.url) { + return

{props.description}

; + } else { + return

{props.description}

; + } + } else { + return null; + } +} + function PublishedDate(props: any) { if (props.date) { return

Published: {props.date}

; @@ -74,16 +88,12 @@ function DiscontinuedDate(props: any) { } } -function Description(props: any) { - if (props.description) { - if (props.url) { - return

{props.description}

; - } else { - return

{props.description}

; - } - } else { - return null; - } +function SubscribeUrl(props: any) { + return + Subscribe + ; } function ViewUrl(props: any) { @@ -92,12 +102,24 @@ function ViewUrl(props: any) { ; } -function SubscribeUrl(props: any) { - return - Subscribe - ; +function HomeUrl(props: any) { + if (props.url) { + return + Home + ; + } else { + return null; + } +} + +function DonateUrl(props: any) { + if (props.url) { + return + Donate + ; + } else { + return null; + } } interface IFilterListDetailsDto {