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,11 +10,7 @@ interface StandartGaugeProps {
data: Data[]
}
const StandartGauge = (props: StandartGaugeProps) => {
const { data } = props
return (
<>
const StandartGauge = ({ data }: StandartGaugeProps) => (
<ResponsivePie
data={data}
margin={{ top: 40, right: 80, bottom: 80, left: 80 }}
@ -27,7 +23,6 @@ const StandartGauge = (props: StandartGaugeProps) => {
enableArcLabels={false}
legends={[]}
/>
</>
)
}
export default StandartGauge