Remove react fragments

This commit is contained in:
Hristo Nedelkov 2023-08-07 15:27:39 +03:00
parent 558e2dd8e5
commit df45d98cfb
1 changed files with 14 additions and 19 deletions

View File

@ -10,24 +10,19 @@ interface StandartGaugeProps {
data: Data[] data: Data[]
} }
const StandartGauge = (props: StandartGaugeProps) => { const StandartGauge = ({ data }: StandartGaugeProps) => (
const { data } = props <ResponsivePie
data={data}
margin={{ top: 40, right: 80, bottom: 80, left: 80 }}
innerRadius={0.65}
colors={datum => datum.data.color}
fit={false}
activeOuterRadiusOffset={8}
enableArcLinkLabels={false}
arcLinkLabelsColor={{ from: 'color' }}
enableArcLabels={false}
legends={[]}
/>
)
return (
<>
<ResponsivePie
data={data}
margin={{ top: 40, right: 80, bottom: 80, left: 80 }}
innerRadius={0.65}
colors={datum => datum.data.color}
fit={false}
activeOuterRadiusOffset={8}
enableArcLinkLabels={false}
arcLinkLabelsColor={{ from: 'color' }}
enableArcLabels={false}
legends={[]}
/>
</>
)
}
export default StandartGauge export default StandartGauge