1
1
import React from 'react'
2
+ import PropTypes from 'prop-types'
2
3
import Features from '../components/Features'
3
4
import Testimonials from '../components/Testimonials'
4
5
import Pricing from '../components/Pricing'
@@ -104,7 +105,31 @@ export const ProductPageTemplate = ({
104
105
</ section >
105
106
)
106
107
107
- export default ( { data } ) => {
108
+ ProductPageTemplate . propTypes = {
109
+ image : PropTypes . string ,
110
+ title : PropTypes . string ,
111
+ heading : PropTypes . string ,
112
+ description : PropTypes . string ,
113
+ intro : PropTypes . shape ( {
114
+ blurbs : PropTypes . array ,
115
+ } ) ,
116
+ main : PropTypes . shape ( {
117
+ heading : PropTypes . string ,
118
+ description : PropTypes . string ,
119
+ image1 : PropTypes . object ,
120
+ image2 : PropTypes . object ,
121
+ image3 : PropTypes . object ,
122
+ } ) ,
123
+ testimonials : PropTypes . array ,
124
+ fullImage : PropTypes . string ,
125
+ pricing : PropTypes . shape ( {
126
+ heading : PropTypes . string ,
127
+ description : PropTypes . string ,
128
+ plans : PropTypes . array ,
129
+ } ) ,
130
+ }
131
+
132
+ const ProductPage = ( { data } ) => {
108
133
const { frontmatter } = data . markdownRemark
109
134
110
135
return (
@@ -122,6 +147,16 @@ export default ({ data }) => {
122
147
)
123
148
}
124
149
150
+ ProductPage . propTypes = {
151
+ data : PropTypes . shape ( {
152
+ markdownRemark : PropTypes . shape ( {
153
+ frontmatter : PropTypes . object ,
154
+ } ) ,
155
+ } ) ,
156
+ }
157
+
158
+ export default ProductPage
159
+
125
160
export const productPageQuery = graphql `
126
161
query ProductPage($id: String!) {
127
162
markdownRemark(id: { eq: $id }) {
0 commit comments