mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
feat: wip invoice customizer
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
// @ts-nocheck
|
||||
import React from 'react';
|
||||
import * as R from 'ramda';
|
||||
import { Drawer, DrawerSuspense } from '@/components';
|
||||
import withDrawers from '@/containers/Drawer/withDrawers';
|
||||
|
||||
const EstimateCustomizeContent = React.lazy(
|
||||
() => import('./EstimateCustomizeContent'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Estimate customize drawer.
|
||||
* @returns {React.ReactNode}
|
||||
*/
|
||||
function EstimateCustomizeDrawerRoot({
|
||||
name,
|
||||
|
||||
// #withDrawer
|
||||
isOpen,
|
||||
payload: {},
|
||||
}) {
|
||||
return (
|
||||
<Drawer isOpen={isOpen} name={name} size={'100%'}>
|
||||
<DrawerSuspense>
|
||||
<EstimateCustomizeContent />
|
||||
</DrawerSuspense>
|
||||
</Drawer>
|
||||
);
|
||||
}
|
||||
|
||||
export const EstimateCustomizeDrawer = R.compose(withDrawers())(
|
||||
EstimateCustomizeDrawerRoot,
|
||||
);
|
||||
Reference in New Issue
Block a user