Make minor syntax consistency updates

pull/10616/head
Jared Scheib 2017-07-07 15:21:55 -07:00 committed by Jared Scheib
parent 79ba169f6f
commit 342941cef8
2 changed files with 8 additions and 8 deletions

View File

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

View File

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