import React from "react"; import CallItem from "./CallItem"; import { Icon, Table, Ref } from "semantic-ui-react"; import "./CallPlayer.css"; // ---------------------------------------------------- class ListCalls extends React.Component { constructor(props) { super(props); //this.currentCallRef = React.createRef(); } //https://stackoverflow.com/questions/36559661/how-can-i-dispatch-from-child-components-in-react-redux //https://stackoverflow.com/questions/42597602/react-onclick-pass-event-with-parameter render() { return ( Len Talkgroup Time {this.props.callsAllIds.map((callId, index) => { if (callId === this.props.activeCallId) { return () } else { return } }) }
); } } export default ListCalls;