Make minor syntax consistency updates
parent
79ba169f6f
commit
342941cef8
|
@ -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) {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue