diff --git a/.eslintrc b/.eslintrc index c7c49a5be..d6af718f4 100644 --- a/.eslintrc +++ b/.eslintrc @@ -149,6 +149,7 @@ "padded-blocks": "off", "quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}], "react/no-deprecated": 0, + "react/default-props-match-prop-types": 2, "semi": [2, "never"], "semi-spacing": [2, { "before": false, "after": true }], "space-before-blocks": [2, "always"], diff --git a/ui/app/components/app/dropdowns/components/dropdown.js b/ui/app/components/app/dropdowns/components/dropdown.js index 149f063a7..cc966ffa5 100644 --- a/ui/app/components/app/dropdowns/components/dropdown.js +++ b/ui/app/components/app/dropdowns/components/dropdown.js @@ -4,8 +4,6 @@ const h = require('react-hyperscript') const MenuDroppo = require('../../menu-droppo') const extend = require('xtend') -const noop = () => {} - class Dropdown extends Component { render () { const { @@ -55,8 +53,6 @@ class Dropdown extends Component { } Dropdown.defaultProps = { - isOpen: false, - onClick: noop, useCssTransition: false, } diff --git a/ui/app/components/ui/tooltip-v2.js b/ui/app/components/ui/tooltip-v2.js index 8d63e1515..c7f94506c 100644 --- a/ui/app/components/ui/tooltip-v2.js +++ b/ui/app/components/ui/tooltip-v2.js @@ -7,7 +7,6 @@ export default class Tooltip extends PureComponent { arrow: true, children: null, containerClassName: '', - hideOnClick: false, html: null, onHidden: null, position: 'left', diff --git a/ui/app/pages/first-time-flow/seed-phrase/confirm-seed-phrase/draggable-seed.component.js b/ui/app/pages/first-time-flow/seed-phrase/confirm-seed-phrase/draggable-seed.component.js index b0afd4c41..7e0652f8f 100644 --- a/ui/app/pages/first-time-flow/seed-phrase/confirm-seed-phrase/draggable-seed.component.js +++ b/ui/app/pages/first-time-flow/seed-phrase/confirm-seed-phrase/draggable-seed.component.js @@ -25,7 +25,6 @@ class DraggableSeed extends Component { static defaultProps = { className: '', - onClick () {}, } componentWillReceiveProps (nextProps) {