Move PropTypes to just above proptype declarations
parent
1c113e2316
commit
7e120d4251
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue