lbry-desktop/ui/modal/modalSendTip/view.jsx

38 lines
896 B
React
Raw Normal View History

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,
claimIsMine: boolean,
isSupport: boolean,
2022-02-02 17:20:10 +01:00
isTipOnly?: boolean,
hasSelectedTab?: string,
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() {
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}
customText={customText}
2022-02-02 17:20:10 +01:00
setAmount={setAmount}
/>
2018-03-26 23:32:43 +02:00
</Modal>
);
}
}
export default ModalSendTip;