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 ReactDOM from 'react-dom'
import Active from '../Active' 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' import ReactTopicCard from '../../components/TopicCard'

View file

@ -1,4 +1,4 @@
/* global $, CanvasLoader, Countable, Hogan, embedly */ /* global $, embedly */
import React, { PropTypes, Component } from 'react' import React, { PropTypes, Component } from 'react'
class Attachments extends Component { class Attachments extends Component {
@ -14,7 +14,7 @@ class Attachments extends Component {
} }
componentDidMount = () => { componentDidMount = () => {
const { topic, ActiveMapper } = this.props const { topic } = this.props
embedly('on', 'card.rendered', this.embedlyCardRendered) embedly('on', 'card.rendered', this.embedlyCardRendered)
topic.get('link') && topic.get('link') !== '' && this.loadLink() topic.get('link') && topic.get('link') !== '' && this.loadLink()
} }
@ -94,7 +94,7 @@ class Attachments extends Component {
> >
<div id="addLinkIcon"></div> <div id="addLinkIcon"></div>
<div id="addLinkInput"> <div id="addLinkInput">
<input ref={input => this.linkInput = input} <input ref={input => (this.linkInput = input)}
placeholder="Enter or paste a link" placeholder="Enter or paste a link"
value={linkEdit} value={linkEdit}
onChange={this.onLinkChangeHandler} onChange={this.onLinkChangeHandler}

View file

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

View file

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

View file

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