mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
Improvement: Add proptypes to components
This commit is contained in:
parent
7e98d8d2c2
commit
2d5574e05e
@ -1,4 +1,5 @@
|
|||||||
import React, { useState } from 'react'
|
import React, { useState } from 'react'
|
||||||
|
import PropTypes from 'prop-types'
|
||||||
import Layout from '../components/Layout'
|
import Layout from '../components/Layout'
|
||||||
import HeaderSection from '../components/HeaderSection'
|
import HeaderSection from '../components/HeaderSection'
|
||||||
import Content from '../components/Content'
|
import Content from '../components/Content'
|
||||||
@ -95,3 +96,7 @@ export default function MarkdownList({ pageContext }) {
|
|||||||
</Layout>
|
</Layout>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MarkdownList.propTypes = {
|
||||||
|
pageContext: PropTypes.object.isRequired
|
||||||
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
import PropTypes from 'prop-types'
|
||||||
import DocContent from '../components/DocContent'
|
import DocContent from '../components/DocContent'
|
||||||
import Content from '../components/Content'
|
import Content from '../components/Content'
|
||||||
|
|
||||||
@ -17,26 +18,6 @@ export default function MarkdownTemplate({ data }) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// export const postQuery = graphql`
|
MarkdownTemplate.propTypes = {
|
||||||
// query BlogPostByPath($path: String!) {
|
data: PropTypes.object.isRequired
|
||||||
// markdownRemark(frontmatter: { slug: { eq: $path } }) {
|
}
|
||||||
// html
|
|
||||||
// htmlAst
|
|
||||||
// tableOfContents
|
|
||||||
// frontmatter {
|
|
||||||
// slug
|
|
||||||
// title
|
|
||||||
// section
|
|
||||||
// }
|
|
||||||
// ...PageFooter
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// fragment PageFooter on MarkdownRemark {
|
|
||||||
// parent {
|
|
||||||
// ... on File {
|
|
||||||
// relativePath
|
|
||||||
// sourceInstanceName
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// `
|
|
||||||
|
Loading…
Reference in New Issue
Block a user