diff --git a/src/core/components/auth/authorize-btn.jsx b/src/core/components/auth/authorize-btn.jsx index e1190096..315312d4 100644 --- a/src/core/components/auth/authorize-btn.jsx +++ b/src/core/components/auth/authorize-btn.jsx @@ -6,7 +6,7 @@ export default class AuthorizeBtn extends React.Component { } onClick =() => { - let { authActions, authSelectors, errActions} = this.props + let { authActions, authSelectors } = this.props let definitions = authSelectors.definitionsToAuthorize() authActions.showDefinitions(definitions) diff --git a/src/core/components/auth/auths.jsx b/src/core/components/auth/auths.jsx index 9b406c3d..9e9cf6f6 100644 --- a/src/core/components/auth/auths.jsx +++ b/src/core/components/auth/auths.jsx @@ -42,14 +42,12 @@ export default class Auths extends React.Component { } render() { - let { definitions, getComponent, authSelectors, errSelectors, specSelectors } = this.props + let { definitions, getComponent, authSelectors, errSelectors } = this.props const ApiKeyAuth = getComponent("apiKeyAuth") const BasicAuth = getComponent("basicAuth") const Oauth2 = getComponent("oauth2", true) const Button = getComponent("Button") - const JumpToPath = getComponent("JumpToPath", true) - let specStr = specSelectors.specStr() let authorized = authSelectors.authorized() let authorizedAuth = definitions.filter( (definition, key) => { diff --git a/src/core/components/auth/oauth2.jsx b/src/core/components/auth/oauth2.jsx index 31be8c15..052aec00 100644 --- a/src/core/components/auth/oauth2.jsx +++ b/src/core/components/auth/oauth2.jsx @@ -16,7 +16,8 @@ export default class Oauth2 extends React.Component { authSelectors: PropTypes.object.isRequired, authActions: PropTypes.object.isRequired, errSelectors: PropTypes.object.isRequired, - errActions: PropTypes.object.isRequired + errActions: PropTypes.object.isRequired, + getConfigs: PropTypes.function } constructor(props, context) { diff --git a/src/core/components/errors.jsx b/src/core/components/errors.jsx index 329a291f..7a975f35 100644 --- a/src/core/components/errors.jsx +++ b/src/core/components/errors.jsx @@ -1,7 +1,6 @@ import React, { PropTypes } from "react" -import Im, { List } from "immutable" +import { List } from "immutable" import Collapse from "react-collapse" -import sortBy from "lodash/sortBy" export default class Errors extends React.Component { diff --git a/src/core/components/execute.jsx b/src/core/components/execute.jsx index 9f8d602e..37425466 100644 --- a/src/core/components/execute.jsx +++ b/src/core/components/execute.jsx @@ -1,5 +1,4 @@ import React, { Component, PropTypes } from "react" -import { fromJS } from "immutable" export default class Execute extends Component { @@ -29,9 +28,6 @@ export default class Execute extends Component { onChangeProducesWrapper = ( val ) => this.props.specActions.changeProducesValue([this.props.path, this.props.method], val) render(){ - let { getComponent, operation, specActions, path, method } = this.props - const ContentType = getComponent( "contentType" ) - return (