Unverified Commit 48f83189 authored by Matthew Taylor's avatar Matthew Taylor Committed by GitHub

Merge pull request #1763 from mewtaylor/hotfix/add-back-rows

[Develop] Add back in FPC and recently shared rows
parents 380be6b5 ade9ccef
...@@ -226,6 +226,23 @@ var SplashPresentation = injectIntl(React.createClass({ ...@@ -226,6 +226,23 @@ var SplashPresentation = injectIntl(React.createClass({
</Box> </Box>
]; ];
if (this.props.featuredGlobal.curator_top_projects &&
this.props.featuredGlobal.curator_top_projects.length > 4) {
rows.push(
<Box
key="curator_top_projects"
title={
formatMessage({id: 'splash.projectsCuratedBy'}) + ' ' +
this.props.featuredGlobal.curator_top_projects[0].curator_name}
moreTitle={formatMessage({id: 'general.learnMore'})}
moreHref="/studios/386359/"
>
<LegacyCarousel items={this.props.featuredGlobal.curator_top_projects} />
</Box>
);
}
if (this.props.featuredGlobal.scratch_design_studio && if (this.props.featuredGlobal.scratch_design_studio &&
this.props.featuredGlobal.scratch_design_studio.length > 4) { this.props.featuredGlobal.scratch_design_studio.length > 4) {
...@@ -243,6 +260,20 @@ var SplashPresentation = injectIntl(React.createClass({ ...@@ -243,6 +260,20 @@ var SplashPresentation = injectIntl(React.createClass({
); );
} }
if (this.props.user &&
this.props.featuredGlobal.community_newest_projects &&
this.props.featuredGlobal.community_newest_projects.length > 0) {
rows.push(
<Box
title={formatMessage({id: 'splash.recentlySharedProjects'})}
key="community_newest_projects"
>
<LegacyCarousel items={this.props.featuredGlobal.community_newest_projects} />
</Box>
);
}
if (this.props.sharedByFollowing && this.props.sharedByFollowing.length > 0) { if (this.props.sharedByFollowing && this.props.sharedByFollowing.length > 0) {
rows.push( rows.push(
<Box <Box
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment