We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f81fff3 commit 5fcf083Copy full SHA for 5fcf083
site/src/components/SettingsSecurityForm/SettingsSecurityForm.stories.tsx
@@ -17,12 +17,6 @@ const Template: Story<SecurityFormProps> = (args: SecurityFormProps) => (
17
export const Example = Template.bind({})
18
Example.args = {
19
isLoading: false,
20
- initialValues: {
21
- old_password: "",
22
- password: "",
23
- confirm_password: "",
24
- },
25
- updateSecurityError: undefined,
26
onSubmit: () => {
27
return Promise.resolve()
28
},
@@ -37,7 +31,7 @@ Loading.args = {
37
31
export const WithError = Template.bind({})
38
32
WithError.args = {
39
33
...Example.args,
40
- updateSecurityError: mockApiError({
34
+ error: mockApiError({
41
35
message: "Old password is incorrect",
42
36
validations: [
43
{
@@ -46,7 +40,4 @@ WithError.args = {
46
47
],
48
}),
49
- initialTouched: {
50
- old_password: true,
51
52
}
0 commit comments