Grafana-UI: Enhances for TimeRangePicker and TimeRangeInput (#30102)

This commit is contained in:
Bogdan Matei
2021-01-15 16:53:57 +02:00
committed by GitHub
parent 9734b7069c
commit 46167785e6
12 changed files with 437 additions and 582 deletions

View File

@@ -1,11 +1,11 @@
import React from 'react';
import { LocalStorageValueProvider } from '../LocalStorageValueProvider';
import { TimeRange, isDateTime, toUtc } from '@grafana/data';
import { Props as TimePickerProps, TimeRangePicker } from '@grafana/ui/src/components/TimePicker/TimeRangePicker';
import { TimeRangePickerProps, TimeRangePicker } from '@grafana/ui/src/components/TimePicker/TimeRangePicker';
const LOCAL_STORAGE_KEY = 'grafana.dashboard.timepicker.history';
interface Props extends Omit<TimePickerProps, 'history' | 'theme'> {}
interface Props extends Omit<TimeRangePickerProps, 'history' | 'theme'> {}
export const TimePickerWithHistory: React.FC<Props> = props => {
return (