feat: add more customize drawers

This commit is contained in:
Ahmed Bouhuolia
2024-09-09 21:31:14 +02:00
parent f644ed6708
commit 67904f52af
6 changed files with 106 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
export default function CreditNoteCustomizeContent() {
return <h1>asdasd</h1>;
}

View File

@@ -0,0 +1,32 @@
// @ts-nocheck
import React from 'react';
import * as R from 'ramda';
import { Drawer, DrawerSuspense } from '@/components';
import withDrawers from '@/containers/Drawer/withDrawers';
const CreditNoteCustomizeContent = React.lazy(
() => import('./CreditNoteCustomizeContent'),
);
/**
* Invoice customize drawer.
* @returns {React.ReactNode}
*/
function CreditNoteCustomizeDrawerRoot({
name,
// #withDrawer
isOpen,
payload: {},
}) {
return (
<Drawer isOpen={isOpen} name={name} size={'100%'}>
<DrawerSuspense>
<CreditNoteCustomizeContent />
</DrawerSuspense>
</Drawer>
);
}
export const CreditNoteCustomizeDrawer = R.compose(withDrawers())(
CreditNoteCustomizeDrawerRoot,
);