Commit 1fae79bc authored by tom's avatar tom

add units to fullscreen graphs

parent 4908184b
...@@ -274,6 +274,7 @@ const ChartWidget = ({ items, title, description, isLoading, className, isError, ...@@ -274,6 +274,7 @@ const ChartWidget = ({ items, title, description, isLoading, className, isError,
title={ title } title={ title }
description={ description } description={ description }
onClose={ clearFullscreenChart } onClose={ clearFullscreenChart }
units={ units }
/> />
) } ) }
</> </>
......
...@@ -13,6 +13,7 @@ type Props = { ...@@ -13,6 +13,7 @@ type Props = {
description?: string; description?: string;
items: Array<TimeChartItem>; items: Array<TimeChartItem>;
onClose: () => void; onClose: () => void;
units?: string;
} }
const FullscreenChartModal = ({ const FullscreenChartModal = ({
...@@ -20,6 +21,7 @@ const FullscreenChartModal = ({ ...@@ -20,6 +21,7 @@ const FullscreenChartModal = ({
title, title,
description, description,
items, items,
units,
onClose, onClose,
}: Props) => { }: Props) => {
const [ isZoomResetInitial, setIsZoomResetInitial ] = React.useState(true); const [ isZoomResetInitial, setIsZoomResetInitial ] = React.useState(true);
...@@ -94,6 +96,7 @@ const FullscreenChartModal = ({ ...@@ -94,6 +96,7 @@ const FullscreenChartModal = ({
margin={{ bottom: 60 }} margin={{ bottom: 60 }}
isEnlarged isEnlarged
items={ items } items={ items }
units={ units }
onZoom={ handleZoom } onZoom={ handleZoom }
isZoomResetInitial={ isZoomResetInitial } isZoomResetInitial={ isZoomResetInitial }
title={ title } title={ title }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment