We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b60d206 commit a5e107cCopy full SHA for a5e107c
src/hooks/useStatus.ts
@@ -100,21 +100,21 @@ export default function useStatus(
100
[STEP_ACTIVE]?: MotionEventHandler;
101
}>(() => {
102
switch (status) {
103
- case 'appear':
+ case STATUS_APPEAR:
104
return {
105
[STEP_PREPARE]: onAppearPrepare,
106
[STEP_START]: onAppearStart,
107
[STEP_ACTIVE]: onAppearActive,
108
};
109
110
- case 'enter':
+ case STATUS_ENTER:
111
112
[STEP_PREPARE]: onEnterPrepare,
113
[STEP_START]: onEnterStart,
114
[STEP_ACTIVE]: onEnterActive,
115
116
117
- case 'leave':
+ case STATUS_LEAVE:
118
119
[STEP_PREPARE]: onLeavePrepare,
120
[STEP_START]: onLeaveStart,
0 commit comments