renderSuggestionsForLatestContent()

in public/js/components/ContentSuggestions/ContentSuggestions.js [86:101]


  renderSuggestionsForLatestContent() {
    if (this.props.suggestionsForLatestContent) {
      return (
        <ul className="suggestions-list">
          { this.props.suggestionsForLatestContent
            .filter(item => item.atoms.length > 0)
            .map((item, i) => this.renderContentAndSuggestions(item, i))
          }
        </ul>
      );
    } else {
      return (
        <div>Loading atom suggestions for most viewed content...</div>
      );
    }
  }