From 67121426a55f93e23c04732d2d4c15a10adda867 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Fri, 18 Nov 2022 17:10:14 -0800 Subject: [PATCH] Fire action in story when button is pressed --- .../FollowerCollection/FollowerCollection.stories.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx b/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx index f67cd13b0..fac92e359 100644 --- a/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx +++ b/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import { RecoilRoot } from 'recoil'; +import { action } from '@storybook/addon-actions'; import { FollowerCollection } from './FollowerCollection'; export default { @@ -12,8 +13,8 @@ export default { const Template: ComponentStory = (args: object) => ( { + action('Follow button clicked'); }} name="Example stream name" {...args}