Skip to content

Instantly share code, notes, and snippets.

@mazikwyry
Created March 16, 2017 07:47
Show Gist options
  • Save mazikwyry/5a0653444eb7c1d6ee0a11c27ed5a977 to your computer and use it in GitHub Desktop.
Save mazikwyry/5a0653444eb7c1d6ee0a11c27ed5a977 to your computer and use it in GitHub Desktop.
return (
<section className="discover">
<DiscoverHeader />
{!isAdvancedSearchVisible && <DiscoverForm actions={actions} />}
{isAdvancedSearchVisible && <DiscoverAdvancedForm actions={actions} />}
{projectsWeLove.size !== 0
&& projects.size === 0
&& !wasSearchPerformed
&& <DiscoverProjectsWeLove actions={actions} />}
{!wasSearchPerformed && topProjectsHTML}
{projects.size === 0 && wasSearchPerformed && <DiscoverProjectNoResults {...{ actions }} />}
{projects.size !== 0 && wasSearchPerformed && <section>
<div className="container">
<div className="row">
{projectsHTML}
<div className="load-more-button-wrapper col-xs-12">
<button onClick={this.loadMoreProjects}>Load more</button>
</div>
</div>
</div>
</section>
}
</section>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment