* 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.
14 lines
355 B
JavaScript
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')}
|
|
/>
|
|
);
|