diff --git a/src/pages/singular-product.js b/src/pages/singular-product.js index 8c4539f..9e5abda 100644 --- a/src/pages/singular-product.js +++ b/src/pages/singular-product.js @@ -1,73 +1,73 @@ -import React from "react" -import { graphql } from "gatsby" -import Layout from "../components/layout" -import SingularProduct from "../components/singular-product/singular-product" +// import React from "react" +// import { graphql } from "gatsby" +// import Layout from "../components/layout" +// import SingularProduct from "../components/singular-product/singular-product" -export default function Home({ data }) { - const productData = data.prismicProduct.data +// export default function Home({ data }) { +// const productData = data.prismicProduct.data - return ( - - - - ) -} +// return ( +// +// +// +// ) +// } -export const query = graphql` - query ProductQuery { - prismicProduct { - data { - button_destination - button_title - cta_title - feature_icon { - url - dimensions { - height - width - } - } - feature_title - features { - feature_description { - text - } - feature_image { - dimensions { - height - width - } - url - } - feature_name - } - icon_section_title - icons { - icon_image { - dimensions { - height - width - } - url - } - icon_text - } - product_description { - text - } - product_images { - image { - dimensions { - height - width - } - url - } - } - product_title - product_type +// export const query = graphql` +// query ProductQuery { +// prismicProduct { +// data { +// button_destination +// button_title +// cta_title +// feature_icon { +// url +// dimensions { +// height +// width +// } +// } +// feature_title +// features { +// feature_description { +// text +// } +// feature_image { +// dimensions { +// height +// width +// } +// url +// } +// feature_name +// } +// icon_section_title +// icons { +// icon_image { +// dimensions { +// height +// width +// } +// url +// } +// icon_text +// } +// product_description { +// text +// } +// product_images { +// image { +// dimensions { +// height +// width +// } +// url +// } +// } +// product_title +// product_type - } - } - } -` +// } +// } +// } +// ` diff --git a/src/schemas/product.json b/src/schemas/product.json index 5564213..75669f0 100644 --- a/src/schemas/product.json +++ b/src/schemas/product.json @@ -32,6 +32,12 @@ "label" : "Product Description" } }, + "product_recommendation" : { + "type" : "Text", + "config" : { + "label" : "Product Recommendation" + } + }, "product_images" : { "type" : "Group", "config" : { @@ -171,36 +177,6 @@ }, "label" : "Image Highlight Group" } - }, - "Image Highlight Section": { - "image_highlight_heading": { - "type": "Text", - "config": { - "label": "Image Highlight Heading" - } - }, - "image_highlight_group": { - "type": "Group", - "config": { - "fields": { - "highlighted_image": { - "type": "Image", - "config": { - "constraint": {}, - "thumbnails": [], - "label": "Highlighted Image" - } - }, - "image_highlight_description": { - "type": "Text", - "config": { - "label": "Image Highlight Description" - } - } - }, - "label": "Image Highlight Group" - } - } } } } \ No newline at end of file diff --git a/src/templates/product.js b/src/templates/product.js index 3060569..2c3af68 100644 --- a/src/templates/product.js +++ b/src/templates/product.js @@ -121,7 +121,7 @@ export default function Product({ data }) { /> - {feature.feature_description.text} + {/* {feature.feature_description.text} */} )
{feature.feature_description.text}