Created
March 16, 2017 07:47
-
-
Save mazikwyry/5a0653444eb7c1d6ee0a11c27ed5a977 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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