Skip to content

Commit

Permalink
chore(lint): fix extra semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-lai committed Jul 19, 2022
1 parent 8d81210 commit f7c149f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/core/components/headers.jsx
Expand Up @@ -8,7 +8,7 @@ export default class Headers extends React.Component {
static propTypes = {
headers: PropTypes.object.isRequired,
getComponent: PropTypes.func.isRequired
};
}

render() {
let { headers, getComponent } = this.props
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/operations.jsx
Expand Up @@ -23,7 +23,7 @@ export default class Operations extends React.Component {
authSelectors: PropTypes.object.isRequired,
getConfigs: PropTypes.func.isRequired,
fn: PropTypes.func.isRequired
};
}

render() {
let {
Expand Down
4 changes: 2 additions & 2 deletions src/core/components/param-body.jsx
Expand Up @@ -20,14 +20,14 @@ export default class ParamBody extends PureComponent {
isExecute: PropTypes.bool,
specSelectors: PropTypes.object.isRequired,
pathMethod: PropTypes.array.isRequired
};
}

static defaultProp = {
consumes: fromJS(["application/json"]),
param: fromJS({}),
onChange: NOOP,
onChangeConsumes: NOOP,
};
}

constructor(props, context) {
super(props, context)
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/response.jsx
Expand Up @@ -54,7 +54,7 @@ export default class Response extends React.Component {
static defaultProps = {
response: fromJS({}),
onContentTypeChange: () => {}
};
}

_onContentTypeChange = (value) => {
const { onContentTypeChange, controlsAcceptHeader } = this.props
Expand Down
4 changes: 2 additions & 2 deletions src/core/components/try-it-out-button.jsx
Expand Up @@ -10,7 +10,7 @@ export default class TryItOutButton extends React.Component {
enabled: PropTypes.bool, // Try it out is enabled, ie: the user has access to the form
hasUserEditedBody: PropTypes.bool, // Try it out is enabled, ie: the user has access to the form
isOAS3: PropTypes.bool, // Try it out is enabled, ie: the user has access to the form
};
}

static defaultProps = {
onTryoutClick: Function.prototype,
Expand All @@ -19,7 +19,7 @@ export default class TryItOutButton extends React.Component {
enabled: false,
hasUserEditedBody: false,
isOAS3: false,
};
}

render() {
const { onTryoutClick, onCancelClick, onResetClick, enabled, hasUserEditedBody, isOAS3 } = this.props
Expand Down

0 comments on commit f7c149f

Please sign in to comment.