var classNames = require('classnames'); var connect = require('react-redux').connect; var React = require('react'); var render = require('../../lib/render.jsx'); var Deck = require ('../../components/deck/deck.jsx'); var TeacherApprovalStep = require('../../components/registration/steps.jsx').TeacherApprovalStep; require('./teacherwaitingroom.scss'); var TeacherWaitingRoom = React.createClass({ displayName: 'TeacherWaitingRoom', componentWillReceiveProps: function (nextProps) { if (nextProps.session.permissions.educator && nextProps.session.permissions.social) { window.location.href = '/educators/classes/'; } }, render: function () { var permissions = this.props.session.permissions || {}; var user = this.props.session.user || {}; return ( ); } }); var mapStateToProps = function (state) { return { session: state.session.session }; }; var ConnectedTeacherWaitingRoom = connect(mapStateToProps)(TeacherWaitingRoom); render(, document.getElementById('app'));