var React = require('react'),
    SessionItem = require('./request-session-item-view.js');

function getSessionState() {
    return {
        allSessions: sessionStore.getAll()
    };
};

module.exports = React.createClass({
    render: function() {
        var allSessions = this.props.allSessions;
        var sessions = [];
        for (var key in allSessions) {
          sessions.push(<SessionItem key={key} session={allSessions[key]} />);
        }
        if (sessions.length == 0) {
            sessions = <em>No found sessions.</em>;
        }

        return (
            <ul className="request-session-list-holder">
                {sessions}
            </ul>
        );
    }
});

var React = require('react'),
    SessionItem = require('./request-session-item-view.js');

module.exports = React.createClass({
    render: function() {
        var allSessions = this.props.allSessions;
        var sessions = [];
        for (var key in allSessions) {
          sessions.push(<SessionItem key={key} session={allSessions[key]} />);
        }
        if (sessions.length == 0) {
            sessions = <em>No found sessions.</em>;
        }

        return (
            <ul className="request-session-list-holder">
                {sessions}
            </ul>
        );
    }
});

Remove unused code from session list
Remove unused code from session list
