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