2018-03-26 23:32:43 +02:00
|
|
|
// @flow
|
|
|
|
import React from 'react';
|
|
|
|
import { Modal } from 'modal/modal';
|
|
|
|
import SendTip from 'component/walletSendTip';
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
closeModal: () => void,
|
|
|
|
uri: string,
|
|
|
|
};
|
|
|
|
|
|
|
|
class ModalSendTip extends React.PureComponent<Props> {
|
|
|
|
render() {
|
|
|
|
const { closeModal, uri } = this.props;
|
|
|
|
|
|
|
|
return (
|
2018-09-07 20:10:46 +02:00
|
|
|
<Modal onAborted={closeModal} isOpen type="custom">
|
2018-03-26 23:32:43 +02:00
|
|
|
<SendTip uri={uri} onCancel={closeModal} sendTipCallback={closeModal} />
|
|
|
|
</Modal>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ModalSendTip;
|