mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-17 19:12:40 -05:00
Merge pull request #7474 from LLK/hotfix/hide-community-rows
Hotfix/hide community rows
This commit is contained in:
commit
efb20db8fd
1 changed files with 22 additions and 21 deletions
|
@ -8,7 +8,7 @@ const React = require('react');
|
||||||
const frameless = require('../../lib/frameless');
|
const frameless = require('../../lib/frameless');
|
||||||
const intlShape = require('../../lib/intl-shape');
|
const intlShape = require('../../lib/intl-shape');
|
||||||
const sessionActions = require('../../redux/session.js');
|
const sessionActions = require('../../redux/session.js');
|
||||||
const shuffle = require('../../lib/shuffle.js').shuffle;
|
// const shuffle = require('../../lib/shuffle.js').shuffle; required for community rows
|
||||||
|
|
||||||
const AdminPanel = require('../../components/adminpanel/adminpanel.jsx');
|
const AdminPanel = require('../../components/adminpanel/adminpanel.jsx');
|
||||||
const Box = require('../../components/box/box.jsx');
|
const Box = require('../../components/box/box.jsx');
|
||||||
|
@ -302,26 +302,27 @@ class SplashPresentation extends React.Component { // eslint-disable-line react/
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
rows.push(
|
// Temporarily hide community rows
|
||||||
<Box
|
// rows.push(
|
||||||
key="community_most_remixed_projects"
|
// <Box
|
||||||
title={this.props.intl.formatMessage({id: 'splash.communityRemixing'})}
|
// key="community_most_remixed_projects"
|
||||||
>
|
// title={this.props.intl.formatMessage({id: 'splash.communityRemixing'})}
|
||||||
<LegacyCarousel
|
// >
|
||||||
showRemixes
|
// <LegacyCarousel
|
||||||
items={shuffle(this.props.featuredGlobal.community_most_remixed_projects)}
|
// showRemixes
|
||||||
/>
|
// items={shuffle(this.props.featuredGlobal.community_most_remixed_projects)}
|
||||||
</Box>,
|
// />
|
||||||
<Box
|
// </Box>,
|
||||||
key="community_most_loved_projects"
|
// <Box
|
||||||
title={this.props.intl.formatMessage({id: 'splash.communityLoving'})}
|
// key="community_most_loved_projects"
|
||||||
>
|
// title={this.props.intl.formatMessage({id: 'splash.communityLoving'})}
|
||||||
<LegacyCarousel
|
// >
|
||||||
showLoves
|
// <LegacyCarousel
|
||||||
items={shuffle(this.props.featuredGlobal.community_most_loved_projects)}
|
// showLoves
|
||||||
/>
|
// items={shuffle(this.props.featuredGlobal.community_most_loved_projects)}
|
||||||
</Box>
|
// />
|
||||||
);
|
// </Box>
|
||||||
|
// );
|
||||||
|
|
||||||
return rows;
|
return rows;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue