Skip to content

Commit c61dec1

Browse files
committed
clean
1 parent 70c04b9 commit c61dec1

File tree

1 file changed

+18
-49
lines changed

1 file changed

+18
-49
lines changed

stories/Follow.stories.tsx

Lines changed: 18 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -23,55 +23,6 @@ const { meta, getStory } = getStoryFactory<FollowProps>({
2323

2424
export default meta;
2525

26-
export const Default = getStory({
27-
newsletter: {
28-
buttonProps: {
29-
onClick: action("Default onClick")
30-
},
31-
form: {
32-
formComponent: ({ children }) => <form action="#">{children}</form>,
33-
inputProps: {
34-
label: undefined
35-
},
36-
success: false
37-
}
38-
},
39-
social: {
40-
buttons: [
41-
{
42-
type: "facebook",
43-
linkProps: {
44-
href: "#facebook"
45-
}
46-
},
47-
{
48-
type: "twitter-x",
49-
linkProps: {
50-
href: "#twitter"
51-
}
52-
},
53-
{
54-
type: "linkedin",
55-
linkProps: {
56-
href: "#linkedin"
57-
}
58-
},
59-
{
60-
type: "instagram",
61-
linkProps: {
62-
href: "#instagram"
63-
}
64-
},
65-
{
66-
type: "youtube",
67-
linkProps: {
68-
href: "#youtube"
69-
}
70-
}
71-
]
72-
}
73-
});
74-
7526
const defaultSocialButtons: [FollowProps.SocialButton, ...FollowProps.SocialButton[]] = [
7627
{
7728
type: "facebook",
@@ -105,6 +56,24 @@ const defaultSocialButtons: [FollowProps.SocialButton, ...FollowProps.SocialButt
10556
}
10657
];
10758

59+
export const Default = getStory({
60+
newsletter: {
61+
buttonProps: {
62+
onClick: action("Default onClick")
63+
},
64+
form: {
65+
formComponent: ({ children }) => <form action="#">{children}</form>,
66+
inputProps: {
67+
label: undefined
68+
},
69+
success: false
70+
}
71+
},
72+
social: {
73+
buttons: defaultSocialButtons
74+
}
75+
});
76+
10877
export const SocialOnly = getStory({
10978
social: {
11079
buttons: defaultSocialButtons

0 commit comments

Comments
 (0)