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 = { 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}
/> />

View File

@ -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} />}
> >

View File

@ -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} />}
> >