mirror of
https://github.com/kingomarnajjar/gatsby-starter-netlify-cms.git
synced 2026-07-25 22:27:24 +10:00
fix: incorect types
This commit is contained in:
parent
60ee9f12dc
commit
7e82411ada
3 changed files with 11 additions and 9 deletions
|
|
@ -27,12 +27,14 @@ const Pricing = ({ data }) => (
|
|||
)
|
||||
|
||||
Pricing.propTypes = {
|
||||
data: PropTypes.shape({
|
||||
plan: PropTypes.string,
|
||||
price: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
||||
description: PropTypes.string,
|
||||
items: PropTypes.array,
|
||||
}),
|
||||
data: PropTypes.arrayOf(
|
||||
PropTypes.shape({
|
||||
plan: PropTypes.string,
|
||||
price: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
||||
description: PropTypes.string,
|
||||
items: PropTypes.array,
|
||||
})
|
||||
),
|
||||
}
|
||||
|
||||
export default Pricing
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ export const AboutPageTemplate = ({ title, content, contentComponent }) => {
|
|||
AboutPageTemplate.propTypes = {
|
||||
title: PropTypes.string.isRequired,
|
||||
content: PropTypes.string,
|
||||
contentComponent: PropTypes.instanceOf(React.Component),
|
||||
contentComponent: PropTypes.func,
|
||||
}
|
||||
|
||||
const AboutPage = ({ data }) => {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ export const BlogPostTemplate = ({
|
|||
|
||||
BlogPostTemplate.propTypes = {
|
||||
content: PropTypes.string.isRequired,
|
||||
contentComponent: PropTypes.instanceOf(React.Component),
|
||||
contentComponent: PropTypes.func,
|
||||
description: PropTypes.string,
|
||||
title: PropTypes.string,
|
||||
helmet: PropTypes.instanceOf(Helmet),
|
||||
|
|
@ -54,7 +54,7 @@ const BlogPost = ({ data }) => {
|
|||
|
||||
BlogPost.propTypes = {
|
||||
data: PropTypes.shape({
|
||||
data: PropTypes.object,
|
||||
markdownRemark: PropTypes.object,
|
||||
}),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue