Fix: Rename timezones prop to timezone for plugins compatibility (#53926)

This commit is contained in:
Esteban Beltran
2022-08-19 16:59:56 +02:00
committed by GitHub
parent 4f2d30b153
commit edb54fc8d3
10 changed files with 18 additions and 18 deletions

View File

@@ -126,7 +126,7 @@ export const StatusHistoryPanel: React.FC<TimelinePanelProps> = ({
[timeZone, frames, shouldDisplayCloseButton]
);
const timezones = useMemo(() => getTimezones(options.timezones, timeZone), [options.timezones, timeZone]);
const timezones = useMemo(() => getTimezones(options.timezone, timeZone), [options.timezone, timeZone]);
if (!frames || warn) {
return (
@@ -154,7 +154,7 @@ export const StatusHistoryPanel: React.FC<TimelinePanelProps> = ({
frames={frames}
structureRev={data.structureRev}
timeRange={timeRange}
timeZones={timezones}
timeZone={timezones}
width={width}
height={height}
legendItems={legendItems}