feat: pause, resume main subscription

This commit is contained in:
Ahmed Bouhuolia
2024-07-27 16:55:56 +02:00
parent 998e6de211
commit db634cbb79
17 changed files with 646 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
// @ts-nocheck
import * as R from 'ramda';
import { Button } from '@blueprintjs/core';
import withAlertActions from '../Alert/withAlertActions';
function BillingPageRoot({ openAlert }) {
const handleCancelSubBtnClick = () => {
openAlert('cancel-main-subscription');
};
const handleResumeSubBtnClick = () => {
openAlert('resume-main-subscription');
};
const handleUpdatePaymentMethod = () => {};
return (
<h1>
<Button onClick={handleCancelSubBtnClick}>Cancel Subscription</Button>
<Button onClick={handleResumeSubBtnClick}>Resume Subscription</Button>
<Button>Update Payment Method</Button>
</h1>
);
}
export default R.compose(withAlertActions)(BillingPageRoot);