diff --git a/frontend/src/Metamaps/Views/TopicCard.js b/frontend/src/Metamaps/Views/TopicCard.js index 3cbe5f9a..a7e176ac 100644 --- a/frontend/src/Metamaps/Views/TopicCard.js +++ b/frontend/src/Metamaps/Views/TopicCard.js @@ -4,11 +4,6 @@ import React from 'react' import ReactDOM from 'react-dom' import Active from '../Active' -import DataModel from '../DataModel' -import GlobalUI from '../GlobalUI' -import Mapper from '../Mapper' -import Router from '../Router' -import Visualize from '../Visualize' import ReactTopicCard from '../../components/TopicCard' diff --git a/frontend/src/components/TopicCard/Attachments.js b/frontend/src/components/TopicCard/Attachments.js index de7d1e39..a45cf197 100644 --- a/frontend/src/components/TopicCard/Attachments.js +++ b/frontend/src/components/TopicCard/Attachments.js @@ -1,4 +1,4 @@ -/* global $, CanvasLoader, Countable, Hogan, embedly */ +/* global $, embedly */ import React, { PropTypes, Component } from 'react' class Attachments extends Component { @@ -14,7 +14,7 @@ class Attachments extends Component { } componentDidMount = () => { - const { topic, ActiveMapper } = this.props + const { topic } = this.props embedly('on', 'card.rendered', this.embedlyCardRendered) topic.get('link') && topic.get('link') !== '' && this.loadLink() } @@ -49,8 +49,8 @@ class Attachments extends Component { if (e.which === ENTER_KEY) { // TODO evaluate converting this to '//' no matter what (infer protocol) if (linkEdit.slice(0, 7) !== 'http://' && - linkEdit.slice(0, 8) !== 'https://' && - linkEdit.slice(0, 2) !== '//') { + linkEdit.slice(0, 8) !== 'https://' && + linkEdit.slice(0, 2) !== '//') { finalLink = '//' + linkEdit } this.setState({ linkEdit: '' }) @@ -94,7 +94,7 @@ class Attachments extends Component { >