fix(lint): upcoming eslint@8 reported errors (#8105)
* fix: duplicate propTypes * chore(lint): fix extra semicolon
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import React from "react"
|
||||
import PropTypes from "prop-types"
|
||||
import ImPropTypes from "react-immutable-proptypes"
|
||||
import { Iterable } from "immutable"
|
||||
|
||||
const Headers = ( { headers } )=>{
|
||||
return (
|
||||
@@ -29,7 +28,7 @@ Duration.propTypes = {
|
||||
|
||||
export default class LiveResponse extends React.Component {
|
||||
static propTypes = {
|
||||
response: PropTypes.instanceOf(Iterable).isRequired,
|
||||
response: ImPropTypes.map,
|
||||
path: PropTypes.string.isRequired,
|
||||
method: PropTypes.string.isRequired,
|
||||
displayRequestDuration: PropTypes.bool.isRequired,
|
||||
@@ -130,9 +129,4 @@ export default class LiveResponse extends React.Component {
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
static propTypes = {
|
||||
getComponent: PropTypes.func.isRequired,
|
||||
response: ImPropTypes.map
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user