eslint fixes

This commit is contained in:
Connor Turland 2017-09-10 18:13:25 -04:00
parent ec3e09c578
commit 4cc420eb63
3 changed files with 4 additions and 9 deletions

View file

@ -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

View file

@ -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 {
>
<MetacodeSelect onMetacodeSelect={this.handleMetacodeSelect} metacodeSets={this.props.metacodeSets} />
</div>
</div>
</div>
<Follow ActiveMapper={ActiveMapper} isFollowing={isFollowing} onTopicFollow={wrappedTopicFollow} />
<Permission
permission={topic.get('permission')}

View file

@ -8,7 +8,6 @@ import Attachments from './Attachments'
import Info from './Info'
class ReactTopicCard extends Component {
render = () => {
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}
/>
<Info topic={topic} />
<Info topic={topic} />
<div className="clearfloat"></div>
</div>
</div>
@ -64,7 +61,6 @@ class ReactTopicCard extends Component {
}
}
//
ReactTopicCard.propTypes = {
openTopic: PropTypes.object,
currentUser: PropTypes.object,