From f09189469c9c947880dd69e0730abb9bd1583004 Mon Sep 17 00:00:00 2001 From: Zac Ioannidis Date: Wed, 28 Oct 2020 19:28:18 +0000 Subject: [PATCH] Added markdown component for hiding source --- src/components/CardStack.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/CardStack.jsx b/src/components/CardStack.jsx index 192888b..c6a729c 100644 --- a/src/components/CardStack.jsx +++ b/src/components/CardStack.jsx @@ -114,9 +114,9 @@ class CardStack extends React.Component { ], [ { - kind: "links", + kind: event.hide_source === "FALSE" ? "links" : "markdown", title: "Sources", - value: event.links.map((href, idx) => ({ text: `Source ${idx + 1}`, href })) + value: event.hide_source === "FALSE" ? event.links.map((href, idx) => ({ text: `Source ${idx + 1}`, href })) : "Source hidden to protect the privacy and dignity of civilians. Read more [here](https://staging.forensic-architecture.org/wp-content/uploads/2020/09/2020.14.09-FA-Bcat-Mission-Statement.pdf)." }, ] // [{ kind: "text", title: "Category", value: "Press attack" }],