mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
Fix: Add propTypes
This commit is contained in:
parent
faa3c79e65
commit
287eff714f
@ -82,6 +82,13 @@ export default function ApiSwaggerTemplate({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ApiSwaggerTemplate.propTypes = {
|
||||||
|
pageContext: PropTypes.object.isRequired,
|
||||||
|
location: PropTypes.object.isRequired,
|
||||||
|
data: PropTypes.object.isRequired,
|
||||||
|
path: PropTypes.string.isRequired
|
||||||
|
}
|
||||||
|
|
||||||
export const apiSwaggerQuery = graphql`
|
export const apiSwaggerQuery = graphql`
|
||||||
query {
|
query {
|
||||||
allSectionsYaml {
|
allSectionsYaml {
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { graphql } from 'gatsby'
|
import { graphql } from 'gatsby'
|
||||||
|
import PropTypes from 'prop-types'
|
||||||
|
|
||||||
import Entities from './Entities'
|
import Entities from './Entities'
|
||||||
import Toc from './Toc'
|
import Toc from './Toc'
|
||||||
@ -26,6 +27,13 @@ export default function TypedocTemplate({ data, path, location, pageContext }) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TypedocTemplate.propTypes = {
|
||||||
|
pageContext: PropTypes.object.isRequired,
|
||||||
|
location: PropTypes.object.isRequired,
|
||||||
|
data: PropTypes.object.isRequired,
|
||||||
|
path: PropTypes.string.isRequired
|
||||||
|
}
|
||||||
|
|
||||||
export const TypedocQuery = graphql`
|
export const TypedocQuery = graphql`
|
||||||
query {
|
query {
|
||||||
allSectionsYaml {
|
allSectionsYaml {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user