import React from 'react'; import { connect } from 'react-redux'; import AppActions from '../../app/AppActions.js'; class Notify extends React.Component { constructor(props) { super(props); this.componentLog = (text, elem) => console.log("[Notify.jsx]: " + text, elem ? elem : null); this.closeNotifies = this.closeNotifies.bind(this); } closeNotifies(){ let item = null; for (let key of this.props.listOfNotify.keys()) { item = this.props.listOfNotify.get(key) this.props.closeNotify(item.messageId); } } render() { this.componentLog("render", this); const { listOfNotify, closeNotify } = this.props; let myClass = "alert hidden"; let message = ""; let onClick = null; if (listOfNotify && listOfNotify !== null && listOfNotify.size > 0){ let item = null; message = []; for (let key of listOfNotify.keys()) { item = listOfNotify.get(key) message.push(