Merge pull request #1944 from jessopb/fixTipModal

fix: modalSendTip now closes on esc/click outside
This commit is contained in:
Sean Yesmunt 2018-09-07 14:22:45 -04:00 committed by GitHub
commit 1eb593e2b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ class ModalSendTip extends React.PureComponent<Props> {
const { closeModal, uri } = this.props;
return (
<Modal isOpen type="custom">
<Modal onAborted={closeModal} isOpen type="custom">
<SendTip uri={uri} onCancel={closeModal} sendTipCallback={closeModal} />
</Modal>
);