From a706c08da2e00fab9c72f00feeb5d57457825410 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Tue, 10 Sep 2019 17:59:46 -0500 Subject: [PATCH] cleanup maintainer actions ref #941 --- .../src/components/Maintainers.tsx | 30 ++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/src/FilterLists.Web/src/components/Maintainers.tsx b/src/FilterLists.Web/src/components/Maintainers.tsx index 51f3d5928..25e26dbc9 100644 --- a/src/FilterLists.Web/src/components/Maintainers.tsx +++ b/src/FilterLists.Web/src/components/Maintainers.tsx @@ -20,29 +20,39 @@ interface MaintainerComponentProps { maintainer: Maintainer; } -const MaintainerComponent = (props: MaintainerComponentProps) => - { + let actions = []; + if (props.maintainer.homeUrl) { + actions.push( - , - props.maintainer.emailAddress && + + ); + } + if (props.maintainer.emailAddress) { + actions.push( - , - props.maintainer.twitterHandle && + + ); + } + if (props.maintainer.twitterHandle) { + actions.push( - ]} />; \ No newline at end of file + ); + } + return ; +} \ No newline at end of file