Skip to content

Commit

Permalink
#37 commenting on unused file
Browse files Browse the repository at this point in the history
  • Loading branch information
samgildea committed May 6, 2021
1 parent 78e6e73 commit d56d172
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 100 deletions.
138 changes: 69 additions & 69 deletions src/pages/singular-product.js
Original file line number Diff line number Diff line change
@@ -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 (
<Layout>
<SingularProduct data={productData} />
</Layout>
)
}
// return (
// <Layout>
// <SingularProduct data={productData} />
// </Layout>
// )
// }

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

}
}
}
`
// }
// }
// }
// `
36 changes: 6 additions & 30 deletions src/schemas/product.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
"label" : "Product Description"
}
},
"product_recommendation" : {
"type" : "Text",
"config" : {
"label" : "Product Recommendation"
}
},
"product_images" : {
"type" : "Group",
"config" : {
Expand Down Expand Up @@ -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"
}
}
}
}
}
2 changes: 1 addition & 1 deletion src/templates/product.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default function Product({ data }) {
/>
</FeatureImage>
<FeatureDescription>
<P>{feature.feature_description.text}</P>
{/* <P>{feature.feature_description.text}</P> */}
</FeatureDescription>
</Feature>
)
Expand Down

0 comments on commit d56d172

Please sign in to comment.