mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-02 00:05:35 +01:00
Fix: Lint issues
This commit is contained in:
parent
0d95fef52e
commit
5fe6d816f0
@ -14,9 +14,10 @@ export default class ContentWrapperTemplate extends Component {
|
|||||||
static propTypes = {
|
static propTypes = {
|
||||||
data: PropTypes.object.isRequired,
|
data: PropTypes.object.isRequired,
|
||||||
location: PropTypes.object.isRequired,
|
location: PropTypes.object.isRequired,
|
||||||
pageContext: PropTypes.object.isRequired,
|
slug: PropTypes.string.isRequired,
|
||||||
toc: PropTypes.object.isRequired,
|
toc: PropTypes.object.isRequired,
|
||||||
info: PropTypes.object.isRequired
|
info: PropTypes.object.isRequired,
|
||||||
|
children: PropTypes.any
|
||||||
}
|
}
|
||||||
|
|
||||||
sectionTitle = this.props.data.allSectionsYaml.edges.map(({ node }) => {
|
sectionTitle = this.props.data.allSectionsYaml.edges.map(({ node }) => {
|
||||||
@ -26,7 +27,7 @@ export default class ContentWrapperTemplate extends Component {
|
|||||||
})
|
})
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { location, pageContext } = this.props
|
const { location } = this.props
|
||||||
const { title, description, version } = this.props.info
|
const { title, description, version } = this.props.info
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -38,7 +39,7 @@ export default class ContentWrapperTemplate extends Component {
|
|||||||
<Seo
|
<Seo
|
||||||
title={title}
|
title={title}
|
||||||
description={description}
|
description={description}
|
||||||
slug={pageContext.slug}
|
slug={this.props.slug}
|
||||||
article
|
article
|
||||||
location={location}
|
location={location}
|
||||||
/>
|
/>
|
||||||
|
@ -61,7 +61,7 @@ export default function ApiSwaggerTemplate({
|
|||||||
data={data}
|
data={data}
|
||||||
path={path}
|
path={path}
|
||||||
location={location}
|
location={location}
|
||||||
pageContext={pageContext}
|
slug={pageContext.slug}
|
||||||
info={info}
|
info={info}
|
||||||
toc={<Toc data={api} />}
|
toc={<Toc data={api} />}
|
||||||
>
|
>
|
||||||
|
@ -17,7 +17,7 @@ export default function TypedocTemplate({ data, path, location, pageContext }) {
|
|||||||
data={data}
|
data={data}
|
||||||
path={path}
|
path={path}
|
||||||
location={location}
|
location={location}
|
||||||
pageContext={pageContext}
|
slug={pageContext.slug}
|
||||||
info={typedoc.info}
|
info={typedoc.info}
|
||||||
toc={<Toc data={typedoc.children} />}
|
toc={<Toc data={typedoc.children} />}
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user