1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00

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

This commit is contained in:
Whymarrh Whitby 2019-11-27 12:37:41 -03:30 committed by GitHub
parent 9a1c7e3864
commit 629e5501a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {