Skip to content

Commit 8cc28df

Browse files
committed
fix interface name
1 parent 163dfce commit 8cc28df

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/victory-core/src/victory-animation/victory-animation.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export type AnimationStyle = { [key: string]: string | number };
1212
*/
1313

1414
export type AnimationData = AnimationStyle | AnimationStyle[];
15+
1516
export type AnimationEasing =
1617
| "back"
1718
| "backIn"
@@ -62,10 +63,12 @@ export interface VictoryAnimationProps {
6263
onEnd?: () => void;
6364
data: AnimationData;
6465
}
65-
export interface VictoryState {
66+
67+
export interface VictoryAnimationState {
6668
data: AnimationStyle;
6769
animationInfo: AnimationInfo;
6870
}
71+
6972
export interface AnimationInfo {
7073
progress: number;
7174
animating: boolean;
@@ -92,7 +95,7 @@ export const VictoryAnimation = ({
9295
children,
9396
onEnd,
9497
}: VictoryAnimationProps) => {
95-
const [state, setState] = React.useState<VictoryState>({
98+
const [state, setState] = React.useState<VictoryAnimationState>({
9699
data: Array.isArray(data) ? data[0] : data,
97100
animationInfo: {
98101
progress: 0,

0 commit comments

Comments
 (0)