Skip to content

Commit 5bdc79a

Browse files
committed
Fix storybook stories
1 parent e8f5220 commit 5bdc79a

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

site/src/components/SettingsSecurityForm/SettingsSecurityForm.stories.tsx

+1-10
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ const Template: Story<SecurityFormProps> = (args: SecurityFormProps) => (
1717
export const Example = Template.bind({})
1818
Example.args = {
1919
isLoading: false,
20-
initialValues: {
21-
old_password: "",
22-
password: "",
23-
confirm_password: "",
24-
},
25-
updateSecurityError: undefined,
2620
onSubmit: () => {
2721
return Promise.resolve()
2822
},
@@ -37,7 +31,7 @@ Loading.args = {
3731
export const WithError = Template.bind({})
3832
WithError.args = {
3933
...Example.args,
40-
updateSecurityError: mockApiError({
34+
error: mockApiError({
4135
message: "Old password is incorrect",
4236
validations: [
4337
{
@@ -46,7 +40,4 @@ WithError.args = {
4640
},
4741
],
4842
}),
49-
initialTouched: {
50-
old_password: true,
51-
},
5243
}

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

+6
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ SigningIn.args = {
2828
...SignedOut.args,
2929
isSigningIn: true,
3030
authMethods: {
31+
convert_to_oidc_enabled: true,
3132
password: { enabled: true },
3233
github: { enabled: true },
3334
oidc: { enabled: false, signInText: "", iconUrl: "" },
@@ -55,6 +56,7 @@ export const WithGithub = Template.bind({})
5556
WithGithub.args = {
5657
...SignedOut.args,
5758
authMethods: {
59+
convert_to_oidc_enabled: true,
5860
password: { enabled: true },
5961
github: { enabled: true },
6062
oidc: { enabled: false, signInText: "", iconUrl: "" },
@@ -65,6 +67,7 @@ export const WithOIDC = Template.bind({})
6567
WithOIDC.args = {
6668
...SignedOut.args,
6769
authMethods: {
70+
convert_to_oidc_enabled: true,
6871
password: { enabled: true },
6972
github: { enabled: false },
7073
oidc: { enabled: true, signInText: "", iconUrl: "" },
@@ -75,6 +78,7 @@ export const WithOIDCWithoutPassword = Template.bind({})
7578
WithOIDCWithoutPassword.args = {
7679
...SignedOut.args,
7780
authMethods: {
81+
convert_to_oidc_enabled: true,
7882
password: { enabled: false },
7983
github: { enabled: false },
8084
oidc: { enabled: true, signInText: "", iconUrl: "" },
@@ -85,6 +89,7 @@ export const WithoutAny = Template.bind({})
8589
WithoutAny.args = {
8690
...SignedOut.args,
8791
authMethods: {
92+
convert_to_oidc_enabled: true,
8893
password: { enabled: false },
8994
github: { enabled: false },
9095
oidc: { enabled: false, signInText: "", iconUrl: "" },
@@ -95,6 +100,7 @@ export const WithGithubAndOIDC = Template.bind({})
95100
WithGithubAndOIDC.args = {
96101
...SignedOut.args,
97102
authMethods: {
103+
convert_to_oidc_enabled: true,
98104
password: { enabled: true },
99105
github: { enabled: true },
100106
oidc: { enabled: true, signInText: "", iconUrl: "" },

0 commit comments

Comments
 (0)