diff --git a/frontend/src/components/TopicCard/Info.js b/frontend/src/components/TopicCard/Info.js
index 5803df65..03d5da89 100644
--- a/frontend/src/components/TopicCard/Info.js
+++ b/frontend/src/components/TopicCard/Info.js
@@ -31,7 +31,7 @@ class Info extends Component {
let firstFiveLinks = []
let extraLinks = []
- for (let i = 0; i < inmapsArray.length; i ++) {
+ for (let i = 0; i < inmapsArray.length; i++) {
if (i < 5) {
firstFiveLinks.push({ mapName: inmapsArray[i], mapId: inmapsLinks[i] })
} else {
@@ -98,7 +98,7 @@ class Info extends Component {
}
Info.propTypes = {
- topic: PropTypes.object, // backbone object
+ topic: PropTypes.object // backbone object
}
export default Info
diff --git a/frontend/src/components/TopicCard/Links.js b/frontend/src/components/TopicCard/Links.js
index b3dbba22..e1f873ce 100644
--- a/frontend/src/components/TopicCard/Links.js
+++ b/frontend/src/components/TopicCard/Links.js
@@ -1,7 +1,6 @@
/* global $ */
import React, { PropTypes, Component } from 'react'
-import { Link } from 'react-router'
import MetacodeSelect from '../MetacodeSelect'
import Permission from './Permission'
@@ -55,7 +54,7 @@ class Links extends Component {
>
-
+
{
const { currentUser, onTopicFollow, updateTopic } = this.props
const topic = this.props.openTopic
@@ -16,10 +15,8 @@ class ReactTopicCard extends Component {
if (!topic) return null
const wrappedUpdateTopic = obj => updateTopic(topic, obj)
- const wrappedTopicFollow = () => onTopicFollow(topic)
const authorizedToEdit = topic.authorizeToEdit(currentUser)
- const isFollowing = topic.isFollowedBy(currentUser)
const hasAttachment = topic.get('link') && topic.get('link') !== ''
let classname = 'permission'
@@ -54,7 +51,7 @@ class ReactTopicCard extends Component {
authorizedToEdit={authorizedToEdit}
updateTopic={wrappedUpdateTopic}
/>
-
+
@@ -64,7 +61,6 @@ class ReactTopicCard extends Component {
}
}
-//
ReactTopicCard.propTypes = {
openTopic: PropTypes.object,
currentUser: PropTypes.object,