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 = {
|
|
|
|
uri: string,
|
2019-07-17 05:23:45 +02:00
|
|
|
claimIsMine: boolean,
|
2019-07-19 22:21:41 +02:00
|
|
|
isSupport: boolean,
|
2022-02-02 17:20:10 +01:00
|
|
|
isTipOnly?: boolean,
|
|
|
|
hasSelectedTab?: string,
|
2022-02-04 21:59:11 +01:00
|
|
|
customText?: string,
|
2022-02-02 17:20:10 +01:00
|
|
|
doHideModal: () => void,
|
|
|
|
setAmount?: (number) => void,
|
2018-03-26 23:32:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
class ModalSendTip extends React.PureComponent<Props> {
|
|
|
|
render() {
|
2022-02-04 21:59:11 +01:00
|
|
|
const { uri, claimIsMine, isTipOnly, hasSelectedTab, customText, doHideModal, setAmount } = this.props;
|
2018-03-26 23:32:43 +02:00
|
|
|
|
|
|
|
return (
|
2022-02-02 17:20:10 +01:00
|
|
|
<Modal onAborted={doHideModal} isOpen type="card">
|
|
|
|
<SendTip
|
|
|
|
uri={uri}
|
|
|
|
claimIsMine={claimIsMine}
|
|
|
|
onCancel={doHideModal}
|
|
|
|
isTipOnly={isTipOnly}
|
|
|
|
hasSelectedTab={hasSelectedTab}
|
2022-02-04 21:59:11 +01:00
|
|
|
customText={customText}
|
2022-02-02 17:20:10 +01:00
|
|
|
setAmount={setAmount}
|
|
|
|
/>
|
2018-03-26 23:32:43 +02:00
|
|
|
</Modal>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ModalSendTip;
|