Remove react fragments
This commit is contained in:
parent
558e2dd8e5
commit
df45d98cfb
|
@ -10,24 +10,19 @@ interface StandartGaugeProps {
|
|||
data: Data[]
|
||||
}
|
||||
|
||||
const StandartGauge = (props: StandartGaugeProps) => {
|
||||
const { data } = props
|
||||
const StandartGauge = ({ data }: StandartGaugeProps) => (
|
||||
<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
|
||||
|
|
Loading…
Reference in New Issue