Fixing lint errors and renaming Pym file.

This commit is contained in:
David Jay
2017-01-24 13:23:42 -05:00
parent 0d7b482dc1
commit 90c58885aa
6 changed files with 15 additions and 16 deletions
+6 -7
View File
@@ -1,15 +1,15 @@
import React, {Component, PropTypes} from 'react';
import React, {Component} from 'react';
import {compose} from 'react-apollo';
import {connect} from 'react-redux';
import {isEqual} from 'lodash'
import {isEqual} from 'lodash';
import {TabBar, Tab, TabContent, Spinner} from '../../coral-ui';
const {logout, showSignInDialog} = authActions;
const {addNotification, clearNotification} = notificationActions;
const {fetchAssetSuccess} = assetActions
const {fetchAssetSuccess} = assetActions;
import pym from './Pym'
import pym from './PymConnection';
import {queryStream} from './graphql/queries';
import {postComment, postAction, deleteAction} from './graphql/mutations';
import {Notification, notificationActions, authActions, assetActions} from 'coral-framework';
@@ -83,15 +83,14 @@ class Embed extends Component {
}
componentWillReceiveProps (nextProps) {
const {loadAsset} = this.props
const {loadAsset} = this.props;
if(!isEqual(nextProps.data.asset, this.props.data.asset)) {
loadAsset(nextProps.data.asset)
loadAsset(nextProps.data.asset);
}
}
render () {
const {activeTab} = this.state;
const {dispatch} = this.props;
const {loading, asset, refetch} = this.props.data;
const {loggedIn, isAdmin, user, showSignInDialog, signInOffset} = this.props.auth;
@@ -1,6 +1,6 @@
import {graphql} from 'react-apollo';
import STREAM_QUERY from './streamQuery.graphql';
import pym from '../../Pym';
import pym from '../../PymConnection';
let url = pym.parentUrl.split('#')[0] || 'http://localhost:3000/';