Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Fire action in story when button is pressed

Gabe Kangas9d155c3f01c4
diff --git a/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx b/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx
index f67cd13b07..fac92e359e 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<typeof FollowerCollection> = (args: object) => (
<RecoilRoot>
<FollowerCollection
- onFollowButtonClick={function (): void {
- throw new Error('Function not implemented.');
+ onFollowButtonClick={() => {
+ action('Follow button clicked');
}}
name="Example stream name"
{...args}