lbry-desktop/ui/modal/modalPreorderContent/view.jsx
mayeaux 4f47779303
Preorder content functionality (#1743)
* adding preorder button

* adding preorder modal

* frontend mostly done

* check if its already purchased

* refresh page after purchase

* smooth out purchase process

* check if user has card saved

* handle case where its the users own upload

* fix transaction listing order bug

* cleaning up code for merge

* fix lint errors

* fix flow errors

* allow eur purchases

* support eur on customer transaction page

* fix css
2022-06-23 20:58:32 -04:00

28 lines
648 B
JavaScript

// @flow
import React from 'react';
import { Modal } from 'modal/modal';
import PreorderContent from 'component/preorderContent';
type Props = {
uri: string,
doHideModal: () => void,
checkIfAlreadyPurchased: () => void,
};
class ModalSendTip extends React.PureComponent<Props> {
render() {
const { uri, doHideModal, checkIfAlreadyPurchased } = this.props;
return (
<Modal onAborted={doHideModal} isOpen type="card">
<PreorderContent
uri={uri}
onCancel={doHideModal}
checkIfAlreadyPurchased={checkIfAlreadyPurchased}
/>
</Modal>
);
}
}
export default ModalSendTip;