Skip to content

Commit 303f6cb

Browse files
committed
Update useAnimation.stories.tsx
1 parent b57e8b3 commit 303f6cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stories/hooks/useAnimation.stories.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { StoryObj } from "@storybook/react";
2-
import { useCallback, useEffect, useState } from "react";
2+
import { useEffect, useState } from "react";
33
import { TypedEasing, useAnimation } from "../../src";
44

55
export default { component: useAnimation };
@@ -70,7 +70,7 @@ export const Hello: StoryObj = {
7070
</g>
7171
</svg>
7272
<div>
73-
<button onClick={animate.play}>play</button>
73+
<button onClick={() => animate.play()}>play</button>
7474
<button onClick={animate.pause}>pause</button>
7575
<button onClick={animate.reverse}>reverse</button>
7676
<button onClick={animate.finish}>finish</button>

0 commit comments

Comments
 (0)