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
|
<p
|
||||||
class="MuiFormHelperText-root-id MuiFormHelperText-contained-id MuiFormHelperText-error-id MuiFormHelperText-filled-id"
|
class="MuiFormHelperText-root-id MuiFormHelperText-contained-id MuiFormHelperText-error-id MuiFormHelperText-filled-id"
|
||||||
>
|
>
|
||||||
Generic form error
|
Invalid value
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
@ -82822,7 +82822,7 @@ Ctrl + K"
|
||||||
<p
|
<p
|
||||||
class="MuiFormHelperText-root-id MuiFormHelperText-contained-id MuiFormHelperText-error-id MuiFormHelperText-filled-id"
|
class="MuiFormHelperText-root-id MuiFormHelperText-contained-id MuiFormHelperText-error-id MuiFormHelperText-filled-id"
|
||||||
>
|
>
|
||||||
Generic form error
|
Invalid value
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -82989,9 +82989,7 @@ Ctrl + K"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id MuiTypography-body1-id MuiTypography-colorError-id"
|
class="MuiTypography-root-id MuiTypography-body1-id MuiTypography-colorError-id"
|
||||||
>
|
/>
|
||||||
Generic form error
|
|
||||||
</div>
|
|
||||||
<div
|
<div
|
||||||
class="VisibilityCard-children-id"
|
class="VisibilityCard-children-id"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
import { storiesOf } from "@storybook/react";
|
import { storiesOf } from "@storybook/react";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
|
import { PageErrorCode } from "@saleor/types/globalTypes";
|
||||||
import PageDetailsPage, {
|
import PageDetailsPage, {
|
||||||
FormData,
|
FormData,
|
||||||
PageDetailsPageProps
|
PageDetailsPageProps
|
||||||
} from "../../../pages/components/PageDetailsPage";
|
} from "../../../pages/components/PageDetailsPage";
|
||||||
import { page } from "../../../pages/fixtures";
|
import { page } from "../../../pages/fixtures";
|
||||||
import Decorator from "../../Decorator";
|
import Decorator from "../../Decorator";
|
||||||
import { formError } from "../../misc";
|
|
||||||
|
|
||||||
const props: PageDetailsPageProps = {
|
const props: PageDetailsPageProps = {
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
@ -36,6 +36,10 @@ storiesOf("Views / Pages / Page details", module)
|
||||||
"isPublished",
|
"isPublished",
|
||||||
"seoDescription",
|
"seoDescription",
|
||||||
"seoTitle"
|
"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