mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
parent
ef881a07f9
commit
c4a365a0e8
1 changed files with 10 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
var classNames = require('classnames');
|
var classNames = require('classnames');
|
||||||
|
var connect = require('react-redux').connect;
|
||||||
var React = require('react');
|
var React = require('react');
|
||||||
|
|
||||||
var sessionActions = require('../../redux/session.js');
|
var sessionActions = require('../../redux/session.js');
|
||||||
|
@ -71,4 +72,12 @@ var TeacherBanner = React.createClass({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = TeacherBanner;
|
var mapStateToProps = function (state) {
|
||||||
|
return {
|
||||||
|
session: state.session
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
var ConnectedTeacherBanner = connect(mapStateToProps)(TeacherBanner);
|
||||||
|
|
||||||
|
module.exports = ConnectedTeacherBanner;
|
||||||
|
|
Loading…
Reference in a new issue