From 03d8453cf29b9a4d9573b445f7140ba208771ca7 Mon Sep 17 00:00:00 2001 From: srmukher Date: Thu, 23 Feb 2023 14:06:22 +0530 Subject: [PATCH] Resolving comments --- .../src/components/DonutChart/Arc/Arc.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/packages/react-charting/src/components/DonutChart/Arc/Arc.tsx b/packages/react-charting/src/components/DonutChart/Arc/Arc.tsx index 25809f9715fbac..e5da540d81bf4e 100644 --- a/packages/react-charting/src/components/DonutChart/Arc/Arc.tsx +++ b/packages/react-charting/src/components/DonutChart/Arc/Arc.tsx @@ -6,7 +6,6 @@ import { getStyles } from './Arc.styles'; import { IChartDataPoint } from '../index'; import { IArcProps, IArcStyles } from './index'; import { wrapTextInsideDonut } from '../../../utilities/index'; -import { IProcessedStyleSet } from '../../../Styling'; export interface IArcState { isCalloutVisible?: boolean; @@ -21,7 +20,6 @@ export class Arc extends React.Component { public state: {} = {}; - private _classNames: IProcessedStyleSet; private currentRef = React.createRef(); public static getDerivedStateFromProps(nextProps: Readonly): Partial | null { @@ -40,7 +38,7 @@ export class Arc extends React.Component { public render(): JSX.Element { const { arc, href, focusedArcId } = this.props; const getClassNames = classNamesFunction(); - this._classNames = getClassNames(getStyles, { + const classNames = getClassNames(getStyles, { color: this.props.color, href: href!, theme: this.props.theme!, @@ -52,13 +50,13 @@ export class Arc extends React.Component { return ( {!!focusedArcId && focusedArcId === id && ( - + )} { aria-label={this._getAriaLabel()} role="img" /> - - - {this.props.valueInsideDonut} + + + {this.props.valueInsideDonut!}