mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 09:35:56 -05:00
Show MiddleBanner if logged out
This commit is contained in:
parent
178ee415e7
commit
c469a0ed97
1 changed files with 12 additions and 0 deletions
|
@ -33,6 +33,7 @@ const ShareProjectMessage = require('./activity-rows/share-project.jsx');
|
|||
|
||||
// Beta Banner Components
|
||||
const TopBanner = require('./beta/top-banner.jsx').default;
|
||||
const MiddleBanner = require('./beta/middle-banner.jsx').default;
|
||||
|
||||
require('./splash.scss');
|
||||
|
||||
|
@ -274,6 +275,17 @@ class SplashPresentation extends React.Component { // eslint-disable-line react/
|
|||
);
|
||||
}
|
||||
|
||||
if (this.props.sessionStatus === sessionActions.Status.FETCHED && Object.keys(this.props.user).length === 0) {
|
||||
rows.push(
|
||||
<MediaQuery
|
||||
key="frameless-tablet"
|
||||
minWidth={frameless.tablet}
|
||||
>
|
||||
<MiddleBanner />
|
||||
</MediaQuery>
|
||||
);
|
||||
}
|
||||
|
||||
if (this.props.featuredGlobal.scratch_design_studio &&
|
||||
this.props.featuredGlobal.scratch_design_studio.length > 4) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue