diff --git a/src/Button/Button.stories.tsx b/src/Button/Button.stories.tsx index 2db864d..7b66200 100644 --- a/src/Button/Button.stories.tsx +++ b/src/Button/Button.stories.tsx @@ -1,7 +1,7 @@ -import { action } from "@storybook/addon-actions"; import type { Meta, StoryObj } from "@storybook/react"; import Button from "./"; +import { makeClickVisible } from "../shared"; const meta = { title: "Atoms/Button", @@ -11,13 +11,12 @@ const meta = { export default meta; type Story = StoryObj; -// Make clicks visible in the inspector -const onClick = action("click"); +const onClick = makeClickVisible; export const All = () => ( <>
-