mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix: GraphPanel should be a PureComponent
This commit is contained in:
parent
4f943687d8
commit
bcb94cc0ec
@ -1,6 +1,6 @@
|
|||||||
// Libraries
|
// Libraries
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import React, { Component } from 'react';
|
import React, { PureComponent } from 'react';
|
||||||
import colors from 'app/core/utils/colors';
|
import colors from 'app/core/utils/colors';
|
||||||
|
|
||||||
// Components & Types
|
// Components & Types
|
||||||
@ -9,7 +9,7 @@ import { Options } from './types';
|
|||||||
|
|
||||||
interface Props extends PanelProps<Options> {}
|
interface Props extends PanelProps<Options> {}
|
||||||
|
|
||||||
export class GraphPanel extends Component<Props> {
|
export class GraphPanel extends PureComponent<Props> {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user