mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
feat: add more customize drawers
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
export default function CreditNoteCustomizeContent() {
|
||||
return <h1>asdasd</h1>;
|
||||
}
|
||||
@@ -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,
|
||||
);
|
||||
Reference in New Issue
Block a user