From e3276dfe8eaf71f09142499ef50c4e5d33cdbee1 Mon Sep 17 00:00:00 2001 From: Zac Ioannidis Date: Wed, 28 Oct 2020 19:02:22 +0000 Subject: [PATCH] Added against field --- src/components/CardStack.jsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/CardStack.jsx b/src/components/CardStack.jsx index e8b298f..192888b 100644 --- a/src/components/CardStack.jsx +++ b/src/components/CardStack.jsx @@ -80,11 +80,19 @@ class CardStack extends React.Component { { kind: "button", title: "Type of Violation", - value: event.associations.map(association => ({ + value: event.associations.slice(0, -1).map(association => ({ text: association, color: getFilterIdxFromColorSet(association, this.props.coloringSet) >= 0 ? this.props.colors[getFilterIdxFromColorSet(association, this.props.coloringSet)] : null, })), }, + { + kind: "button", + title: "Against", + value: event.associations.slice(-1).map(category => ({ + text: category, + color: null, + })), + }, ], [ {