import React, {Component} from 'react'; import './ConnectionMatchedRules.scss'; import ButtonField from "./fields/ButtonField"; class ConnectionMatchedRules extends Component { constructor(props) { super(props); this.state = { }; } render() { const matchedRules = this.props.matchedRules.map(mr => { const rule = this.props.rules.find(r => r.id === mr); return this.props.addMatchedRulesFilter(rule.id)} name={rule.name} color={rule.color} small />; }); return ( matched_rules: {matchedRules} ); } } export default ConnectionMatchedRules;