mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
Fix: Codeclimate issue
This commit is contained in:
parent
5b43862bf6
commit
bde5d3f3aa
@ -15,7 +15,7 @@ export default class ContentWrapperTemplate extends Component {
|
||||
data: PropTypes.object.isRequired,
|
||||
location: PropTypes.object.isRequired,
|
||||
slug: PropTypes.string.isRequired,
|
||||
toc: PropTypes.object.isRequired,
|
||||
toc: PropTypes.any.isRequired,
|
||||
info: PropTypes.object.isRequired,
|
||||
children: PropTypes.any
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ export default function MarkdownList({ data, location, pageContext }) {
|
||||
|
||||
keys.forEach((element) => {
|
||||
children.push(
|
||||
<ul >
|
||||
<ul key={element}>
|
||||
{sidebarList(element, nestedModules[element])}
|
||||
</ul>
|
||||
)
|
||||
@ -99,7 +99,11 @@ export default function MarkdownList({ data, location, pageContext }) {
|
||||
}
|
||||
|
||||
MarkdownList.propTypes = {
|
||||
pageContext: PropTypes.object.isRequired,
|
||||
pageContext: PropTypes.shape({
|
||||
name: PropTypes.string,
|
||||
baseUrl: PropTypes.string,
|
||||
markdownList: PropTypes.arrayOf(PropTypes.object)
|
||||
}),
|
||||
location: PropTypes.object.isRequired,
|
||||
data: PropTypes.object
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user