hide intro if not desktop width

This commit is contained in:
Technoboy10 2016-07-26 11:29:45 -04:00
parent a8b26b1a1c
commit 2a5f330884

View file

@ -21,6 +21,9 @@ var Page = require('../../components/page/www/page.jsx');
var TeacherBanner = require('../../components/teacher-banner/teacher-banner.jsx'); var TeacherBanner = require('../../components/teacher-banner/teacher-banner.jsx');
var Welcome = require('../../components/welcome/welcome.jsx'); var Welcome = require('../../components/welcome/welcome.jsx');
var MediaQuery = require('react-responsive');
var frameless = require('../../lib/frameless');
require('./splash.scss'); require('./splash.scss');
var Splash = injectIntl(React.createClass({ var Splash = injectIntl(React.createClass({
@ -393,7 +396,9 @@ var Splash = injectIntl(React.createClass({
<News items={this.state.news} messages={messages} /> <News items={this.state.news} messages={messages} />
</div> </div>
] : [ ] : [
/*<Intro projectCount={this.state.projectCount} messages={messages} key="intro"/>*/ <MediaQuery minWidth={frameless.desktop}>
<Intro projectCount={this.state.projectCount} messages={messages} key="intro"/>
</MediaQuery>
]) : [] ]) : []
} }