UI/RefreshPicker: Change base from PureComponent to Component (#27031)

This commit is contained in:
kay delaney 2020-08-18 07:12:14 +01:00 committed by GitHub
parent 19930ee301
commit 6145bf77cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
import React, { PureComponent } from 'react';
import React, { Component } from 'react';
import classNames from 'classnames';
import { SelectableValue } from '@grafana/data';
import { css } from 'emotion';
@ -35,7 +35,7 @@ export interface Props {
theme: GrafanaTheme;
}
export class RefreshPickerBase extends PureComponent<Props> {
export class RefreshPickerBase extends Component<Props> {
static offOption = { label: 'Off', value: '' };
static liveOption = { label: 'Live', value: 'LIVE' };
static isLive = (refreshInterval?: string): boolean => refreshInterval === RefreshPicker.liveOption.value;