11import { splitTheme } from '../../.storybook/decorators/splitThemeDecorator' ;
22import { ArticleDesign , ArticleDisplay , Pillar } from '../lib/articleFormat' ;
3- import { FollowNotificationsButton , FollowTagButton } from './FollowButtons ' ;
3+ import { FollowTagButton } from './FollowTagButton ' ;
44
55export default {
6- component : [ FollowNotificationsButton , FollowTagButton ] ,
7- title : 'Components/FollowStatus ' ,
6+ component : FollowTagButton ,
7+ title : 'Components/FollowTagButton ' ,
88 args : {
99 isFollowing : false ,
1010 } ,
1111} ;
1212
1313export const Default = ( { isFollowing } : { isFollowing : boolean } ) => {
1414 return (
15- < >
16- < FollowTagButton
17- isFollowing = { isFollowing }
18- displayName = { 'John Doe' }
19- onClickHandler = { ( ) => undefined }
20- />
21- < FollowNotificationsButton
22- isFollowing = { isFollowing }
23- onClickHandler = { ( ) => undefined }
24- />
25- </ >
15+ < FollowTagButton
16+ isFollowing = { isFollowing }
17+ displayName = { 'John Doe' }
18+ onClickHandler = { ( ) => undefined }
19+ />
2620 ) ;
2721} ;
2822
@@ -37,22 +31,6 @@ Default.decorators = [
3731 ] ) ,
3832] ;
3933
40- export const NotificationsButtonBothStates = ( ) => {
41- return (
42- < >
43- < FollowNotificationsButton
44- isFollowing = { false }
45- onClickHandler = { ( ) => undefined }
46- />
47- < FollowNotificationsButton
48- isFollowing = { true }
49- onClickHandler = { ( ) => undefined }
50- />
51- </ >
52- ) ;
53- } ;
54- NotificationsButtonBothStates . decorators = [ splitTheme ( ) ] ;
55-
5634export const FollowContributorBothStates = ( ) => {
5735 return (
5836 < >
0 commit comments