Update snapshots
This commit is contained in:
parent
64a0d7b667
commit
b5fe5487ef
3 changed files with 35 additions and 32 deletions
|
@ -10,7 +10,7 @@ import Form from "@saleor/components/Form";
|
|||
import PageHeader from "@saleor/components/PageHeader";
|
||||
import SaveButtonBar from "@saleor/components/SaveButtonBar";
|
||||
import SeoForm from "@saleor/components/SeoForm";
|
||||
import { commonMessages, sectionNames } from "@saleor/intl";
|
||||
import { sectionNames } from "@saleor/intl";
|
||||
import { UserError } from "../../../types";
|
||||
import CategoryDetailsForm from "../../components/CategoryDetailsForm";
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { RawDraftContentState } from "draft-js";
|
||||
import React from "react";
|
||||
import { useIntl, FormattedMessage } from "react-intl";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
import AppHeader from "@saleor/components/AppHeader";
|
||||
import { CardSpacer } from "@saleor/components/CardSpacer";
|
||||
|
@ -11,6 +11,7 @@ import PageHeader from "@saleor/components/PageHeader";
|
|||
import SaveButtonBar from "@saleor/components/SaveButtonBar";
|
||||
import SeoForm from "@saleor/components/SeoForm";
|
||||
import { Tab, TabContainer } from "@saleor/components/Tab";
|
||||
import { sectionNames } from "@saleor/intl";
|
||||
import { maybe } from "../../../misc";
|
||||
import { TabListActions, UserError } from "../../../types";
|
||||
import CategoryDetailsForm from "../../components/CategoryDetailsForm";
|
||||
|
@ -121,7 +122,9 @@ export const CategoryUpdatePage: React.StatelessComponent<
|
|||
>
|
||||
{({ data, change, errors, submit, hasChanged }) => (
|
||||
<Container>
|
||||
<AppHeader onBack={onBack}>{i18n.t("Categories")}</AppHeader>
|
||||
<AppHeader onBack={onBack}>
|
||||
{intl.formatMessage(sectionNames.categories)}
|
||||
</AppHeader>
|
||||
<PageHeader title={category ? category.name : undefined} />
|
||||
<CategoryDetailsForm
|
||||
category={category}
|
||||
|
|
|
@ -12391,7 +12391,7 @@ exports[`Storyshots Views / Categories / Category list default 1`] = `
|
|||
<span
|
||||
class="MuiButton-label-id"
|
||||
>
|
||||
Add category
|
||||
Add category
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
class="MuiSvgIcon-root-id"
|
||||
|
@ -12456,7 +12456,7 @@ exports[`Storyshots Views / Categories / Category list default 1`] = `
|
|||
class="MuiTableCell-root-id MuiTableCell-head-id CategoryList-colProducts-id"
|
||||
scope="col"
|
||||
>
|
||||
No. Products
|
||||
No. Products
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -12820,7 +12820,7 @@ exports[`Storyshots Views / Categories / Category list empty 1`] = `
|
|||
<span
|
||||
class="MuiButton-label-id"
|
||||
>
|
||||
Add category
|
||||
Add category
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
class="MuiSvgIcon-root-id"
|
||||
|
@ -12869,7 +12869,7 @@ exports[`Storyshots Views / Categories / Category list empty 1`] = `
|
|||
class="MuiTableCell-root-id MuiTableCell-head-id CategoryList-colProducts-id"
|
||||
scope="col"
|
||||
>
|
||||
No. Products
|
||||
No. Products
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -13039,7 +13039,7 @@ exports[`Storyshots Views / Categories / Category list loading 1`] = `
|
|||
<span
|
||||
class="MuiButton-label-id"
|
||||
>
|
||||
Add category
|
||||
Add category
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
class="MuiSvgIcon-root-id"
|
||||
|
@ -13104,7 +13104,7 @@ exports[`Storyshots Views / Categories / Category list loading 1`] = `
|
|||
class="MuiTableCell-root-id MuiTableCell-head-id CategoryList-colProducts-id"
|
||||
scope="col"
|
||||
>
|
||||
No. Products
|
||||
No. Products
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -13295,7 +13295,7 @@ exports[`Storyshots Views / Categories / Create category When loading 1`] = `
|
|||
<h5
|
||||
class="MuiTypography-root-id MuiTypography-h5-id Component-title-id"
|
||||
>
|
||||
Add Category
|
||||
Create New Category
|
||||
</h5>
|
||||
<div
|
||||
class="ExtendedPageHeader-action-id"
|
||||
|
@ -13315,7 +13315,7 @@ exports[`Storyshots Views / Categories / Create category When loading 1`] = `
|
|||
<span
|
||||
class="MuiTypography-root-id MuiTypography-h5-id CardTitle-title-id"
|
||||
>
|
||||
General information
|
||||
General Informations
|
||||
</span>
|
||||
<div
|
||||
class="CardTitle-toolbar-id"
|
||||
|
@ -13727,7 +13727,7 @@ Ctrl + K"
|
|||
<p
|
||||
class="MuiTypography-root-id MuiTypography-body2-id"
|
||||
>
|
||||
Add search engine title and description to make this product easier to find
|
||||
Add search engine title and description to make this category easier to find
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -13751,7 +13751,7 @@ exports[`Storyshots Views / Categories / Create category default 1`] = `
|
|||
<h5
|
||||
class="MuiTypography-root-id MuiTypography-h5-id Component-title-id"
|
||||
>
|
||||
Add Category
|
||||
Create New Category
|
||||
</h5>
|
||||
<div
|
||||
class="ExtendedPageHeader-action-id"
|
||||
|
@ -13771,7 +13771,7 @@ exports[`Storyshots Views / Categories / Create category default 1`] = `
|
|||
<span
|
||||
class="MuiTypography-root-id MuiTypography-h5-id CardTitle-title-id"
|
||||
>
|
||||
General information
|
||||
General Informations
|
||||
</span>
|
||||
<div
|
||||
class="CardTitle-toolbar-id"
|
||||
|
@ -14182,7 +14182,7 @@ Ctrl + K"
|
|||
<p
|
||||
class="MuiTypography-root-id MuiTypography-body2-id"
|
||||
>
|
||||
Add search engine title and description to make this product easier to find
|
||||
Add search engine title and description to make this category easier to find
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -14225,7 +14225,7 @@ exports[`Storyshots Views / Categories / Update category default 1`] = `
|
|||
<span
|
||||
class="MuiTypography-root-id MuiTypography-h5-id CardTitle-title-id"
|
||||
>
|
||||
General information
|
||||
General Informations
|
||||
</span>
|
||||
<div
|
||||
class="CardTitle-toolbar-id"
|
||||
|
@ -14827,7 +14827,7 @@ Ctrl + K"
|
|||
</span>
|
||||
</button>
|
||||
<input
|
||||
class="CategoryBackgroundComponent-fileField-id"
|
||||
class="Hook-fileField-id"
|
||||
id="fileUpload"
|
||||
type="file"
|
||||
/>
|
||||
|
@ -15080,7 +15080,7 @@ Ctrl + K"
|
|||
class="MuiTableCell-root-id MuiTableCell-head-id CategoryList-colProducts-id"
|
||||
scope="col"
|
||||
>
|
||||
No. Products
|
||||
No. Products
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -15219,7 +15219,7 @@ exports[`Storyshots Views / Categories / Update category loading 1`] = `
|
|||
<span
|
||||
class="MuiTypography-root-id MuiTypography-h5-id CardTitle-title-id"
|
||||
>
|
||||
General information
|
||||
General Informations
|
||||
</span>
|
||||
<div
|
||||
class="CardTitle-toolbar-id"
|
||||
|
@ -15618,7 +15618,7 @@ Ctrl + K"
|
|||
</span>
|
||||
</button>
|
||||
<input
|
||||
class="CategoryBackgroundComponent-fileField-id"
|
||||
class="Hook-fileField-id"
|
||||
id="fileUpload"
|
||||
type="file"
|
||||
/>
|
||||
|
@ -15635,7 +15635,7 @@ Ctrl + K"
|
|||
>
|
||||
<div>
|
||||
<div
|
||||
class="CategoryBackgroundComponent-imageContainer-id"
|
||||
class="Hook-imageContainer-id"
|
||||
>
|
||||
<span
|
||||
class="Skeleton-skeleton-id"
|
||||
|
@ -15788,7 +15788,7 @@ Ctrl + K"
|
|||
class="MuiTableCell-root-id MuiTableCell-head-id CategoryList-colProducts-id"
|
||||
scope="col"
|
||||
>
|
||||
No. Products
|
||||
No. Products
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -15962,7 +15962,7 @@ exports[`Storyshots Views / Categories / Update category no background 1`] = `
|
|||
<span
|
||||
class="MuiTypography-root-id MuiTypography-h5-id CardTitle-title-id"
|
||||
>
|
||||
General information
|
||||
General Informations
|
||||
</span>
|
||||
<div
|
||||
class="CardTitle-toolbar-id"
|
||||
|
@ -16564,7 +16564,7 @@ Ctrl + K"
|
|||
</span>
|
||||
</button>
|
||||
<input
|
||||
class="CategoryBackgroundComponent-fileField-id"
|
||||
class="Hook-fileField-id"
|
||||
id="fileUpload"
|
||||
type="file"
|
||||
/>
|
||||
|
@ -16817,7 +16817,7 @@ Ctrl + K"
|
|||
class="MuiTableCell-root-id MuiTableCell-head-id CategoryList-colProducts-id"
|
||||
scope="col"
|
||||
>
|
||||
No. Products
|
||||
No. Products
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -16951,7 +16951,7 @@ exports[`Storyshots Views / Categories / Update category no products 1`] = `
|
|||
<span
|
||||
class="MuiTypography-root-id MuiTypography-h5-id CardTitle-title-id"
|
||||
>
|
||||
General information
|
||||
General Informations
|
||||
</span>
|
||||
<div
|
||||
class="CardTitle-toolbar-id"
|
||||
|
@ -17553,7 +17553,7 @@ Ctrl + K"
|
|||
</span>
|
||||
</button>
|
||||
<input
|
||||
class="CategoryBackgroundComponent-fileField-id"
|
||||
class="Hook-fileField-id"
|
||||
id="fileUpload"
|
||||
type="file"
|
||||
/>
|
||||
|
@ -17969,7 +17969,7 @@ exports[`Storyshots Views / Categories / Update category no subcategories 1`] =
|
|||
<span
|
||||
class="MuiTypography-root-id MuiTypography-h5-id CardTitle-title-id"
|
||||
>
|
||||
General information
|
||||
General Informations
|
||||
</span>
|
||||
<div
|
||||
class="CardTitle-toolbar-id"
|
||||
|
@ -18571,7 +18571,7 @@ Ctrl + K"
|
|||
</span>
|
||||
</button>
|
||||
<input
|
||||
class="CategoryBackgroundComponent-fileField-id"
|
||||
class="Hook-fileField-id"
|
||||
id="fileUpload"
|
||||
type="file"
|
||||
/>
|
||||
|
@ -18824,7 +18824,7 @@ Ctrl + K"
|
|||
class="MuiTableCell-root-id MuiTableCell-head-id CategoryList-colProducts-id"
|
||||
scope="col"
|
||||
>
|
||||
No. Products
|
||||
No. Products
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -18958,7 +18958,7 @@ exports[`Storyshots Views / Categories / Update category products 1`] = `
|
|||
<span
|
||||
class="MuiTypography-root-id MuiTypography-h5-id CardTitle-title-id"
|
||||
>
|
||||
General information
|
||||
General Informations
|
||||
</span>
|
||||
<div
|
||||
class="CardTitle-toolbar-id"
|
||||
|
@ -19560,7 +19560,7 @@ Ctrl + K"
|
|||
</span>
|
||||
</button>
|
||||
<input
|
||||
class="CategoryBackgroundComponent-fileField-id"
|
||||
class="Hook-fileField-id"
|
||||
id="fileUpload"
|
||||
type="file"
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue