lbry-desktop/ui/modal/modalSendTip/view.jsx
Rafael c90efc2078 Add CommentCreate to Modal on Mobile
- Move stickers and emojis to a single menu comment-selectors on both mobile and desktop
- More style improvements
- Some fixes
- Fix livechat scrolling
2022-02-08 12:35:40 -05:00

37 lines
896 B
JavaScript

// @flow
import React from 'react';
import { Modal } from 'modal/modal';
import SendTip from 'component/walletSendTip';
type Props = {
uri: string,
claimIsMine: boolean,
isSupport: boolean,
isTipOnly?: boolean,
hasSelectedTab?: string,
customText?: string,
doHideModal: () => void,
setAmount?: (number) => void,
};
class ModalSendTip extends React.PureComponent<Props> {
render() {
const { uri, claimIsMine, isTipOnly, hasSelectedTab, customText, doHideModal, setAmount } = this.props;
return (
<Modal onAborted={doHideModal} isOpen type="card">
<SendTip
uri={uri}
claimIsMine={claimIsMine}
onCancel={doHideModal}
isTipOnly={isTipOnly}
hasSelectedTab={hasSelectedTab}
customText={customText}
setAmount={setAmount}
/>
</Modal>
);
}
}
export default ModalSendTip;