Skip to content

Commit 5fcf083

Browse files
committed
Fix storybook stories
1 parent f81fff3 commit 5fcf083

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-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
}

0 commit comments

Comments
 (0)