mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-13 05:48:36 +03:00
Added against field
This commit is contained in:
@@ -80,11 +80,19 @@ class CardStack extends React.Component {
|
|||||||
{
|
{
|
||||||
kind: "button",
|
kind: "button",
|
||||||
title: "Type of Violation",
|
title: "Type of Violation",
|
||||||
value: event.associations.map(association => ({
|
value: event.associations.slice(0, -1).map(association => ({
|
||||||
text: association,
|
text: association,
|
||||||
color: getFilterIdxFromColorSet(association, this.props.coloringSet) >= 0 ? this.props.colors[getFilterIdxFromColorSet(association, this.props.coloringSet)] : null,
|
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,
|
||||||
|
})),
|
||||||
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user