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

pull/26481/head
Alex Khomenko 5 years ago committed by GitHub
parent 43033ddf74
commit 9c3f47aa23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/grafana-ui/src/components/TimePicker/TimeRangeInput.tsx

@ -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>
)}

Loading…
Cancel
Save