Show MiddleBanner if logged out

This commit is contained in:
Connor Hudson 2018-06-28 13:58:23 -04:00
parent 178ee415e7
commit c469a0ed97

View file

@ -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) {