1
0
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:
Akshay 2021-06-02 00:39:48 +02:00
parent 0d95fef52e
commit 5fe6d816f0
3 changed files with 7 additions and 6 deletions

View File

@ -14,9 +14,10 @@ export default class ContentWrapperTemplate extends Component {
static propTypes = {
data: PropTypes.object.isRequired,
location: PropTypes.object.isRequired,
pageContext: PropTypes.object.isRequired,
slug: PropTypes.string.isRequired,
toc: PropTypes.object.isRequired,
info: PropTypes.object.isRequired
info: PropTypes.object.isRequired,
children: PropTypes.any
}
sectionTitle = this.props.data.allSectionsYaml.edges.map(({ node }) => {
@ -26,7 +27,7 @@ export default class ContentWrapperTemplate extends Component {
})
render() {
const { location, pageContext } = this.props
const { location } = this.props
const { title, description, version } = this.props.info
return (
@ -38,7 +39,7 @@ export default class ContentWrapperTemplate extends Component {
<Seo
title={title}
description={description}
slug={pageContext.slug}
slug={this.props.slug}
article
location={location}
/>

View File

@ -61,7 +61,7 @@ export default function ApiSwaggerTemplate({
data={data}
path={path}
location={location}
pageContext={pageContext}
slug={pageContext.slug}
info={info}
toc={<Toc data={api} />}
>

View File

@ -17,7 +17,7 @@ export default function TypedocTemplate({ data, path, location, pageContext }) {
data={data}
path={path}
location={location}
pageContext={pageContext}
slug={pageContext.slug}
info={typedoc.info}
toc={<Toc data={typedoc.children} />}
>