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, + })), + }, ], [ {