import React, { PropTypes } from 'react' import { connect } from 'react-redux' import { Link } from 'react-router' import { createStore, bindActionCreators } from 'redux' import * as uiActions from '../../services/ui/actions' import * as helpers from '../../helpers' import Icon from '../Icon' class AuthorizationModal_Send extends React.Component{ constructor(props){ super(props) } handleClick(e, connection_id){ e.preventDefault() this.props.pusherActions.deliverMessage( connection_id, 'spotify.authorizationReceived', { authorization: this.props.authorization, me: this.props.me } ); this.props.uiActions.closeModal() return false; } renderConnectionsList(){ var connections = [] for (var connection_id in this.props.connections){ if (this.props.connections.hasOwnProperty(connection_id) && connection_id !== this.props.connection_id){ connections.push(this.props.connections[connection_id]) } } if (connections.length <= 0){ return