Commit 91de6f79 authored by Matthew Taylor's avatar Matthew Taylor Committed by GitHub

Merge pull request #614 from mewtaylor/issue/gh-611-teacher-banner

Fix GH-611: Connect `TeacherBanner` to redux
parents afccf3ca c4a365a0
var classNames = require('classnames');
var connect = require('react-redux').connect;
var React = require('react');
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;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment