feat: change subscription plan

This commit is contained in:
Ahmed Bouhuolia
2024-07-28 20:52:53 +02:00
parent 1660df20af
commit 333b6f5a4b
3 changed files with 52 additions and 3 deletions

View File

@@ -0,0 +1,39 @@
// @ts-nocheck
import React, { lazy } from 'react';
import * as R from 'ramda';
import { Drawer, DrawerHeaderContent, DrawerSuspense } from '@/components';
import withDrawers from '@/containers/Drawer/withDrawers';
import { Position } from '@blueprintjs/core';
import { DRAWERS } from '@/constants/drawers';
const ChangeSubscriptionPlanContent = lazy(
() => import('./ChangeSubscriptionPlanContent'),
);
/**
* Account drawer.
*/
function ChangeSubscriptionPlanDrawer({
name,
// #withDrawer
isOpen,
}) {
return (
<Drawer
isOpen={isOpen}
name={name}
size={'calc(100% - 5px)'}
position={Position.BOTTOM}
>
<DrawerSuspense>
<DrawerHeaderContent
name={DRAWERS.CHANGE_SUBSCARIPTION_PLAN}
title={'Change Subscription Plan'}
/>
<ChangeSubscriptionPlanContent />
</DrawerSuspense>
</Drawer>
);
}
export default R.compose(withDrawers())(ChangeSubscriptionPlanDrawer);

View File

@@ -0,0 +1 @@
export * as default from './ChangeSubscriptionPlanDrawer';