Update stories
This commit is contained in:
parent
e1f1a217da
commit
51d1594509
2 changed files with 9 additions and 7 deletions
|
@ -82188,7 +82188,7 @@ exports[`Storyshots Views / Pages / Page details form errors 1`] = `
|
|||
<p
|
||||
class="MuiFormHelperText-root-id MuiFormHelperText-contained-id MuiFormHelperText-error-id MuiFormHelperText-filled-id"
|
||||
>
|
||||
Generic form error
|
||||
Invalid value
|
||||
</p>
|
||||
</div>
|
||||
<div
|
||||
|
@ -82822,7 +82822,7 @@ Ctrl + K"
|
|||
<p
|
||||
class="MuiFormHelperText-root-id MuiFormHelperText-contained-id MuiFormHelperText-error-id MuiFormHelperText-filled-id"
|
||||
>
|
||||
Generic form error
|
||||
Invalid value
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -82989,9 +82989,7 @@ Ctrl + K"
|
|||
/>
|
||||
<div
|
||||
class="MuiTypography-root-id MuiTypography-body1-id MuiTypography-colorError-id"
|
||||
>
|
||||
Generic form error
|
||||
</div>
|
||||
/>
|
||||
<div
|
||||
class="VisibilityCard-children-id"
|
||||
/>
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
import { storiesOf } from "@storybook/react";
|
||||
import React from "react";
|
||||
|
||||
import { PageErrorCode } from "@saleor/types/globalTypes";
|
||||
import PageDetailsPage, {
|
||||
FormData,
|
||||
PageDetailsPageProps
|
||||
} from "../../../pages/components/PageDetailsPage";
|
||||
import { page } from "../../../pages/fixtures";
|
||||
import Decorator from "../../Decorator";
|
||||
import { formError } from "../../misc";
|
||||
|
||||
const props: PageDetailsPageProps = {
|
||||
disabled: false,
|
||||
|
@ -36,6 +36,10 @@ storiesOf("Views / Pages / Page details", module)
|
|||
"isPublished",
|
||||
"seoDescription",
|
||||
"seoTitle"
|
||||
] as Array<keyof FormData>).map(formError)}
|
||||
] as Array<keyof FormData>).map(field => ({
|
||||
__typename: "PageError",
|
||||
code: PageErrorCode.INVALID,
|
||||
field
|
||||
}))}
|
||||
/>
|
||||
));
|
||||
|
|
Loading…
Reference in a new issue