Grafana-UI: Pass timeZone to TimePickerButtonLabel (#26454)

This commit is contained in:
Alex Khomenko 2020-07-20 16:57:14 +03:00 committed by GitHub
parent 43033ddf74
commit 9c3f47aa23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ export const TimeRangeInput: FC<Props> = ({
<div className={styles.container}>
<div tabIndex={0} className={styles.pickerInput} aria-label="TimePicker Open Button" onClick={onOpen}>
{isValidTimeRange(value) ? (
<TimePickerButtonLabel value={value as TimeRange} />
<TimePickerButtonLabel value={value as TimeRange} timeZone={timeZone} />
) : (
<span className={styles.placeholder}>{placeholder}</span>
)}