mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
UI/RefreshPicker: Change base from PureComponent to Component (#27031)
This commit is contained in:
parent
19930ee301
commit
6145bf77cf
@ -1,4 +1,4 @@
|
|||||||
import React, { PureComponent } from 'react';
|
import React, { Component } from 'react';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import { SelectableValue } from '@grafana/data';
|
import { SelectableValue } from '@grafana/data';
|
||||||
import { css } from 'emotion';
|
import { css } from 'emotion';
|
||||||
@ -35,7 +35,7 @@ export interface Props {
|
|||||||
theme: GrafanaTheme;
|
theme: GrafanaTheme;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class RefreshPickerBase extends PureComponent<Props> {
|
export class RefreshPickerBase extends Component<Props> {
|
||||||
static offOption = { label: 'Off', value: '' };
|
static offOption = { label: 'Off', value: '' };
|
||||||
static liveOption = { label: 'Live', value: 'LIVE' };
|
static liveOption = { label: 'Live', value: 'LIVE' };
|
||||||
static isLive = (refreshInterval?: string): boolean => refreshInterval === RefreshPicker.liveOption.value;
|
static isLive = (refreshInterval?: string): boolean => refreshInterval === RefreshPicker.liveOption.value;
|
||||||
|
Loading…
Reference in New Issue
Block a user