Skip to content

Commit 3c44cb0

Browse files
committed
fix types
1 parent fd6a4f5 commit 3c44cb0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/victory-pie/src/victory-pie.tsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,13 @@ import {
3131
VictorySliceLabelPlacementType,
3232
VictorySliceLabelPositionType,
3333
} from "./slice";
34-
import { CurvedLabel } from "./curved-label";
34+
import { CurvedLabel, CurvedLabelProps } from "./curved-label";
3535

3636
export interface VictoryPieProps
3737
extends Omit<VictoryCommonProps, "polar">,
3838
VictoryDatableProps,
3939
VictoryLabelableProps,
4040
VictoryMultiLabelableProps {
41-
curvedLabelComponent?: React.ReactElement;
4241
colorScale?: ColorScalePropType;
4342
cornerRadius?: SliceNumberOrCallback<SliceProps, "cornerRadius">;
4443
endAngle?: number;
@@ -217,7 +216,7 @@ class VictoryPieBase extends React.Component<VictoryPieProps> {
217216
// have label value(tspan) as child component.
218217
if (labelPlacement === "curved") {
219218
const labelPathComponents = this.dataKeys.map((_dataKey, index) => {
220-
const curvedLabelProps = this.getComponentProps(
219+
const curvedLabelProps: CurvedLabelProps = this.getComponentProps(
221220
curvedLabelComponent,
222221
"curvedLabels",
223222
index,
@@ -236,7 +235,7 @@ class VictoryPieBase extends React.Component<VictoryPieProps> {
236235

237236
const curvedLabelComponents = this.dataKeys
238237
.map((_dataKey, index) => {
239-
const curvedLabelProps = this.getComponentProps(
238+
const curvedLabelProps: CurvedLabelProps = this.getComponentProps(
240239
curvedLabelComponent,
241240
"curvedLabels",
242241
index,

0 commit comments

Comments
 (0)