From 5d43241888e57889feec4291a8255d3fadb17460 Mon Sep 17 00:00:00 2001 From: Robby6Strings Date: Thu, 20 Jun 2024 12:17:32 +1200 Subject: [PATCH] rename Transition.onAnimationEnd -> onTransitionEnd --- packages/lib/src/transition.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/lib/src/transition.ts b/packages/lib/src/transition.ts index cf2c8d41..72000aca 100644 --- a/packages/lib/src/transition.ts +++ b/packages/lib/src/transition.ts @@ -10,7 +10,7 @@ type TransitionProps = { out: number } element: (state: "entering" | "entered" | "exiting" | "exited") => JSX.Element - onAnimationEnd?: (state: "entered" | "exited") => void + onTransitionEnd?: (state: "entered" | "exited") => void } export class Transition extends Component { @@ -68,10 +68,10 @@ export class Transition extends Component { if ( (transitionState === "exited" || transitionState === "entered") && - this.props.onAnimationEnd + this.props.onTransitionEnd ) { this.ctx.scheduler?.nextIdle(() => - this.props.onAnimationEnd!(transitionState) + this.props.onTransitionEnd!(transitionState) ) } }