Skip to content

Commit 97d9d46

Browse files
committed
Fix storybook
1 parent 8019ec7 commit 97d9d46

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

site/src/components/SignInForm/SignInForm.stories.tsx

+12-11
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ Loading.args = {
2929
...SignedOut.args,
3030
isLoading: true,
3131
authMethods: {
32-
github: true,
33-
password: true,
32+
password: { enabled: true, hidden: false },
33+
github: { enabled: true },
34+
oidc: { enabled: false, signInText: "", iconUrl: "" },
3435
},
3536
}
3637

@@ -99,28 +100,28 @@ export const WithGithub = Template.bind({})
99100
WithGithub.args = {
100101
...SignedOut.args,
101102
authMethods: {
102-
password: true,
103-
github: true,
104-
oidc: false,
103+
password: { enabled: true, hidden: false },
104+
github: { enabled: true },
105+
oidc: { enabled: false, signInText: "", iconUrl: "" },
105106
},
106107
}
107108

108109
export const WithOIDC = Template.bind({})
109110
WithOIDC.args = {
110111
...SignedOut.args,
111112
authMethods: {
112-
password: true,
113-
github: false,
114-
oidc: true,
113+
password: { enabled: true, hidden: false },
114+
github: { enabled: false },
115+
oidc: { enabled: true, signInText: "", iconUrl: "" },
115116
},
116117
}
117118

118119
export const WithGithubAndOIDC = Template.bind({})
119120
WithGithubAndOIDC.args = {
120121
...SignedOut.args,
121122
authMethods: {
122-
password: true,
123-
github: true,
124-
oidc: true,
123+
password: { enabled: true, hidden: false },
124+
github: { enabled: true },
125+
oidc: { enabled: true, signInText: "", iconUrl: "" },
125126
},
126127
}

0 commit comments

Comments
 (0)