Removed code related to unused image sizes API

This commit is contained in:
Luis Alvarez
2020-10-25 19:50:33 -05:00
parent 4862dc6bbd
commit 50c50b6d53
9 changed files with 36 additions and 143 deletions

View File

@@ -1,15 +1,3 @@
export const responsiveImageFragment = /* GraphQL */ `
fragment responsiveImage on Image {
urlSmall: url(width: $imgSmallWidth, height: $imgSmallHeight)
urlMedium: url(width: $imgMediumWidth, height: $imgMediumHeight)
urlLarge: url(width: $imgLargeWidth, height: $imgLargeHeight)
urlXL: url(width: $imgXLWidth, height: $imgXLHeight)
urlOriginal
altText
isDefault
}
`
export const swatchOptionFragment = /* GraphQL */ `
fragment swatchOption on SwatchOptionValue {
isDefault
@@ -59,7 +47,9 @@ export const productInfoFragment = /* GraphQL */ `
images {
edges {
node {
...responsiveImage
urlOriginal
altText
isDefault
}
}
}
@@ -68,7 +58,9 @@ export const productInfoFragment = /* GraphQL */ `
node {
entityId
defaultImage {
...responsiveImage
urlOriginal
altText
isDefault
}
}
}
@@ -93,7 +85,6 @@ export const productInfoFragment = /* GraphQL */ `
}
}
${responsiveImageFragment}
${multipleChoiceOptionFragment}
`