1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

Merge pull request #132 from oceanprotocol/fix/lint

fix linting & build
This commit is contained in:
Matthias Kretschmann 2019-01-31 11:49:26 +01:00 committed by GitHub
commit e5dd50cf2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 0 deletions

View File

@ -95,6 +95,12 @@ const SidebarGroup = ({ i, group, location, ...props }) => (
</>
)
SidebarGroup.propTypes = {
i: PropTypes.number,
group: PropTypes.object,
location: PropTypes.object
}
export default class Sidebar extends Component {
static propTypes = {
sidebar: PropTypes.string,

View File

@ -19,6 +19,11 @@ const SectionBox = ({ to, children, ...props }) =>
<div {...props}>{children}</div>
)
SectionBox.propTypes = {
to: PropTypes.string.isRequired,
children: PropTypes.any.isRequired
}
const SectionLink = ({ to, title, color, children }) => {
// eslint-disable-next-line
let classNames = classnames(styles.link, {

View File

@ -87,6 +87,10 @@ const Parameters = ({ parameters }) => (
</>
)
Parameters.propTypes = {
parameters: PropTypes.array.isRequired
}
const Responses = ({ responses }) => (
<>
<h4 className={styles.subHeading}>Responses</h4>
@ -98,6 +102,10 @@ const Responses = ({ responses }) => (
</>
)
Responses.propTypes = {
responses: PropTypes.object.isRequired
}
const Method = ({ keyName, value }) => {
const { summary, description, parameters, responses } = value