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 = {
|
||||
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}
|
||||
/>
|
||||
|
@ -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} />}
|
||||
>
|
||||
|
@ -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} />}
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user