lbry-desktop/ui/modal/modalPreorderContent/view.jsx
infinite-persistence 1933997276
Preorder cleanup
Reported issues that weren't completed in de068d36
2022-06-28 13:36:18 +08:00

24 lines
626 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 ModalPreorderContent 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 ModalPreorderContent;