This commit is contained in:
Devin Howard 2017-01-28 16:34:02 -05:00
parent c1472d93a0
commit 5d3f26edf8
6 changed files with 16 additions and 20 deletions

View file

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

View file

@ -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()
}
@ -94,7 +94,7 @@ class Attachments extends Component {
>
<div id="addLinkIcon"></div>
<div id="addLinkInput">
<input ref={input => this.linkInput = input}
<input ref={input => (this.linkInput = input)}
placeholder="Enter or paste a link"
value={linkEdit}
onChange={this.onLinkChangeHandler}

View file

@ -1,5 +1,4 @@
import React, { PropTypes, Component } from 'react'
import { get } from 'lodash'
import { RIETextArea } from 'riek'
import Util from '../../Metamaps/Util'
@ -13,8 +12,6 @@ class MdTextArea extends RIETextArea {
}
renderNormalComponent = () => {
const value = this.state.newValue || this.props.value
// defaultProps MUST use dangerouslySetInnerHTML
return <span tabIndex="0"
className={this.makeClassString()}

View file

@ -1,3 +1,5 @@
/* global $ */
import React, { PropTypes, Component } from 'react'
import Metacode from './Metacode'

View file

@ -1,3 +1,5 @@
/* global $ */
import React, { PropTypes, Component } from 'react'
import DataModel from '../../Metamaps/DataModel'