Make minor syntax consistency updates

pull/1697/head
Jared Scheib 2017-07-07 15:21:55 -07:00 committed by Jared Scheib
parent cd9324a63a
commit 256391d9db
2 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,7 @@
import React, {PropTypes, Component} from 'react' import React, {Component, PropTypes} from 'react'
import ContextMenu from 'src/shared/components/ContextMenu'
import NameableGraphHeader from 'src/shared/components/NameableGraphHeader' import NameableGraphHeader from 'shared/components/NameableGraphHeader'
import ContextMenu from 'shared/components/ContextMenu'
class NameableGraph extends Component { class NameableGraph extends Component {
constructor(props) { constructor(props) {

View File

@ -1,7 +1,8 @@
import React, {PropTypes} from 'react' import React, {PropTypes} from 'react'
import CustomTimeIndicator from 'src/shared/components/CustomTimeIndicator'
import classnames from 'classnames' import classnames from 'classnames'
import CustomTimeIndicator from 'shared/components/CustomTimeIndicator'
const NameableGraphHeader = ({ const NameableGraphHeader = ({
isEditable, isEditable,
onEditCell, onEditCell,
@ -47,21 +48,20 @@ NameableGraphHeader.propTypes = {
isEditable: bool, isEditable: bool,
} }
const GraphName = ({name, queries}) => ( const GraphName = ({name, queries}) =>
<span className="dash-graph--name"> <span className="dash-graph--name">
{name} {name}
{queries && queries.length {queries && queries.length
? <CustomTimeIndicator queries={queries} /> ? <CustomTimeIndicator queries={queries} />
: null} : null}
</span> </span>
)
GraphName.propTypes = { GraphName.propTypes = {
name: string, name: string,
queries: arrayOf(shape()), queries: arrayOf(shape()),
} }
const GraphNameInput = ({value, onKeyUp, onChange, onBlur}) => ( const GraphNameInput = ({value, onKeyUp, onChange, onBlur}) =>
<input <input
className="form-control input-sm dash-graph--name-edit" className="form-control input-sm dash-graph--name-edit"
type="text" type="text"
@ -71,7 +71,6 @@ const GraphNameInput = ({value, onKeyUp, onChange, onBlur}) => (
onBlur={onBlur} onBlur={onBlur}
onKeyUp={onKeyUp} onKeyUp={onKeyUp}
/> />
)
GraphNameInput.propTypes = { GraphNameInput.propTypes = {
value: string, value: string,