update mutation and fixtures
This commit is contained in:
parent
d20b58dd79
commit
52cf01ed72
6 changed files with 6 additions and 4 deletions
|
@ -511,7 +511,8 @@ export const category: (
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
seoDescription: null,
|
seoDescription: null,
|
||||||
seoTitle: null
|
seoTitle: null,
|
||||||
|
slug: "coffees"
|
||||||
});
|
});
|
||||||
export const errors = [
|
export const errors = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -167,5 +167,6 @@ export const collection: (
|
||||||
},
|
},
|
||||||
publicationDate: "2018-08-25T18:45:54.125Z",
|
publicationDate: "2018-08-25T18:45:54.125Z",
|
||||||
seoDescription: "",
|
seoDescription: "",
|
||||||
seoTitle: ""
|
seoTitle: "",
|
||||||
|
slug: "summer-collection"
|
||||||
});
|
});
|
||||||
|
|
|
@ -96,7 +96,6 @@ const SeoForm: React.FC<SeoFormProps> = props => {
|
||||||
const toggleExpansion = () => setExpansionStatus(!expanded);
|
const toggleExpansion = () => setExpansionStatus(!expanded);
|
||||||
const shouldDisplayHelperText = () => helperText && !expanded;
|
const shouldDisplayHelperText = () => helperText && !expanded;
|
||||||
|
|
||||||
console.log({ slug });
|
|
||||||
return (
|
return (
|
||||||
<Card>
|
<Card>
|
||||||
<CardTitle
|
<CardTitle
|
||||||
|
|
|
@ -253,6 +253,7 @@ export const product: (
|
||||||
seoDescription: "Seo description",
|
seoDescription: "Seo description",
|
||||||
seoTitle: "Seo title",
|
seoTitle: "Seo title",
|
||||||
sku: "59661-34207",
|
sku: "59661-34207",
|
||||||
|
slug: "Borders",
|
||||||
thumbnail: { __typename: "Image" as "Image", url: placeholderImage },
|
thumbnail: { __typename: "Image" as "Image", url: placeholderImage },
|
||||||
url: "/example-url",
|
url: "/example-url",
|
||||||
variants: [
|
variants: [
|
||||||
|
|
|
@ -237,7 +237,6 @@ export interface ProductUpdateVariables {
|
||||||
publicationDate?: any | null;
|
publicationDate?: any | null;
|
||||||
category?: string | null;
|
category?: string | null;
|
||||||
chargeTaxes: boolean;
|
chargeTaxes: boolean;
|
||||||
slug?: string | null;
|
|
||||||
collections?: (string | null)[] | null;
|
collections?: (string | null)[] | null;
|
||||||
descriptionJson?: any | null;
|
descriptionJson?: any | null;
|
||||||
isPublished: boolean;
|
isPublished: boolean;
|
||||||
|
|
|
@ -55,6 +55,7 @@ export function createUpdateHandler(
|
||||||
description: data.seoDescription,
|
description: data.seoDescription,
|
||||||
title: data.seoTitle
|
title: data.seoTitle
|
||||||
},
|
},
|
||||||
|
slug: data.slug,
|
||||||
visibleInListings: data.visibleInListings
|
visibleInListings: data.visibleInListings
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue