diff --git a/ui/src/shared/components/NameableGraph.js b/ui/src/shared/components/NameableGraph.js index c09f7ef2e2..d07e8db05a 100644 --- a/ui/src/shared/components/NameableGraph.js +++ b/ui/src/shared/components/NameableGraph.js @@ -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) { diff --git a/ui/src/shared/components/NameableGraphHeader.js b/ui/src/shared/components/NameableGraphHeader.js index d8f8e47cae..2613cc579d 100644 --- a/ui/src/shared/components/NameableGraphHeader.js +++ b/ui/src/shared/components/NameableGraphHeader.js @@ -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}) => {name} {queries && queries.length ? : null} -) GraphName.propTypes = { name: string, queries: arrayOf(shape()), } -const GraphNameInput = ({value, onKeyUp, onChange, onBlur}) => ( +const GraphNameInput = ({value, onKeyUp, onChange, onBlur}) => ( onBlur={onBlur} onKeyUp={onKeyUp} /> -) GraphNameInput.propTypes = { value: string,