/**
 * Created by fsuda on 21.08.2017.
 */

import React from "react";
import WonAtomCard from "./atom-card.jsx";

export default class WonAtomCardGrid extends React.Component {

  render() {
    if(this.props && this.props.atomUris && this.props.atomUris.length > 0) {
      const atomUris = this.props.atomUris;
      const showPersona = this.props.showPersona;
      const showSuggestions = this.props.showSuggestions;
      const currentLocation = this.props.currentLocation;
      const disableDefaultAtomInteraction = this.props.disableDefaultAtomInteraction;
      const ngRedux = this.props && this.props.ngRedux;

      console.debug("atomUris: ", atomUris);
      console.debug("showPersona: ", showPersona);
      console.debug("showSuggestions: ", showSuggestions);
      console.debug("currentLocation: ", currentLocation);
      console.debug("disableDefaultAtomInteraction: ", disableDefaultAtomInteraction);
      console.debug("ngRedux: ", ngRedux);

      return atomUris.map(atomUri => {
        return (
          <WonAtomCard key={atomUri} atomUri={atomUri} showPersona={showPersona} showSuggestions={showSuggestions} currentLocation={currentLocation} disableDefaultAtomInteraction={disableDefaultAtomInteraction} ngRedux={ngRedux} />
        );
      });
    }
    return undefined;
  }
}
Create simple ng-repeat replacing react atomCardGrid
Create simple ng-repeat replacing react atomCardGrid
