Mark onClick prop as not required for DraggableSeed (#7583)

feature/default_network_editable
Whymarrh Whitby 5 years ago committed by GitHub
parent 9a1c7e3864
commit 629e5501a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      ui/app/pages/first-time-flow/seed-phrase/confirm-seed-phrase/draggable-seed.component.js

@ -13,7 +13,7 @@ class DraggableSeed extends Component {
isOver: PropTypes.bool, isOver: PropTypes.bool,
canDrop: PropTypes.bool, canDrop: PropTypes.bool,
// Own Props // Own Props
onClick: PropTypes.func.isRequired, onClick: PropTypes.func,
setHoveringIndex: PropTypes.func.isRequired, setHoveringIndex: PropTypes.func.isRequired,
index: PropTypes.number, index: PropTypes.number,
draggingSeedIndex: PropTypes.number, draggingSeedIndex: PropTypes.number,
@ -25,6 +25,7 @@ class DraggableSeed extends Component {
static defaultProps = { static defaultProps = {
className: '', className: '',
onClick: undefined,
} }
componentWillReceiveProps (nextProps) { componentWillReceiveProps (nextProps) {

Loading…
Cancel
Save