From df45d98cfb64ee747629f5f4afdc30cb81bbf84e Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Mon, 7 Aug 2023 15:27:39 +0300 Subject: [PATCH] Remove react fragments --- src/components/StandartGauge.tsx | 33 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/src/components/StandartGauge.tsx b/src/components/StandartGauge.tsx index b61ef62b..4b677bd9 100644 --- a/src/components/StandartGauge.tsx +++ b/src/components/StandartGauge.tsx @@ -10,24 +10,19 @@ interface StandartGaugeProps { data: Data[] } -const StandartGauge = (props: StandartGaugeProps) => { - const { data } = props +const StandartGauge = ({ data }: StandartGaugeProps) => ( + datum.data.color} + fit={false} + activeOuterRadiusOffset={8} + enableArcLinkLabels={false} + arcLinkLabelsColor={{ from: 'color' }} + enableArcLabels={false} + legends={[]} + /> +) - return ( - <> - datum.data.color} - fit={false} - activeOuterRadiusOffset={8} - enableArcLinkLabels={false} - arcLinkLabelsColor={{ from: 'color' }} - enableArcLabels={false} - legends={[]} - /> - - ) -} export default StandartGauge