docbrown/app/javascript/CommentSubscription/__stories__/CommentSubscription.stories.jsx
Nick Taylor 4d0959783f
Comment Subscription Component (#7136)
* Created the <RadioButton /> and <FormField /> components.

* wip

* Now variant for a <FormField /< is optional

* Added the name prop to the <RadioButton /> component.

* Added the onClick prop to the <RadioButton /> component.

* Updated <CommentSubscription /> component with new subscription functionality.

* Added some tests.

* Fixed a bug found be tests I added.

* Reenabled a skipped test.

* Replaced a string with a constant.
2020-04-08 18:11:59 -04:00

14 lines
355 B
JavaScript

import { h } from 'preact';
import { action } from '@storybook/addon-actions';
import { CommentSubscription } from '../CommentSubscription';
export default {
title: 'App Components/Comment Subscription',
};
export const Default = () => (
<CommentSubscription
onSubscribe={action('subscribed')}
onUnsubscribe={action('unsubscribed')}
/>
);