Move PropTypes to just above proptype declarations

pull/2055/head
Andrew Watkins 2017-09-29 14:28:12 -07:00
parent 1c113e2316
commit 7e120d4251
1 changed files with 2 additions and 2 deletions

View File

@ -7,8 +7,6 @@ import timeSeriesToDygraph from 'utils/timeSeriesToDygraph'
import {SINGLE_STAT_LINE_COLORS} from 'src/shared/graphs/helpers'
const {array, arrayOf, bool, func, number, shape, string} = PropTypes
class LineGraph extends Component {
constructor(props) {
super(props)
@ -132,6 +130,8 @@ const GraphSpinner = () =>
<div className="graph-spinner" />
</div>
const {array, arrayOf, bool, func, number, shape, string} = PropTypes
LineGraph.defaultProps = {
underlayCallback: () => {},
isGraphFilled: true,