1
0
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:
Akshay 2021-06-02 00:30:37 +02:00
parent faa3c79e65
commit 287eff714f
2 changed files with 15 additions and 0 deletions

View File

@ -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`
query {
allSectionsYaml {

View File

@ -1,5 +1,6 @@
import React from 'react'
import { graphql } from 'gatsby'
import PropTypes from 'prop-types'
import Entities from './Entities'
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`
query {
allSectionsYaml {