mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
feat: refactoring alerts.
This commit is contained in:
@@ -3,7 +3,6 @@ import React from 'react';
|
||||
import 'style/pages/InventoryAdjustments/List.scss';
|
||||
|
||||
import { DashboardContentTable, DashboardPageContent } from 'components';
|
||||
import InventoryAdjustmentsAlerts from './InventoryAdjustmentsAlerts';
|
||||
|
||||
import { InventoryAdjustmentsProvider } from './InventoryAdjustmentsProvider';
|
||||
import InventoryAdjustmentTable from './InventoryAdjustmentTable';
|
||||
@@ -28,7 +27,7 @@ function InventoryAdjustmentList({
|
||||
<InventoryAdjustmentTable />
|
||||
</DashboardContentTable>
|
||||
|
||||
<InventoryAdjustmentsAlerts />
|
||||
|
||||
</DashboardPageContent>
|
||||
</InventoryAdjustmentsProvider>
|
||||
);
|
||||
|
||||
@@ -1,12 +1,20 @@
|
||||
import React from 'react';
|
||||
import InventoryAdjustmentDeleteAlert from 'containers/Alerts/Items/InventoryAdjustmentDeleteAlert';
|
||||
import InventoryAdjustmentPublishAlert from 'containers/Alerts/Items/InventoryAdjustmentPublishAlert';
|
||||
|
||||
export default function InventoryAdjustmentsAlerts() {
|
||||
return (
|
||||
<div className={'inventory-adjustments-alert'}>
|
||||
<InventoryAdjustmentDeleteAlert name={'inventory-adjustment-delete'} />
|
||||
<InventoryAdjustmentPublishAlert name={'inventory-adjustment-publish'} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
const InventoryAdjustmentDeleteAlert = React.lazy(() =>
|
||||
import('../Alerts/Items/InventoryAdjustmentDeleteAlert'),
|
||||
);
|
||||
|
||||
const InventoryAdjustmentPublishAlert = React.lazy(() =>
|
||||
import('../Alerts/Items/InventoryAdjustmentPublishAlert'),
|
||||
);
|
||||
|
||||
export default [
|
||||
{
|
||||
name: 'inventory-adjustment-delete',
|
||||
component: InventoryAdjustmentDeleteAlert,
|
||||
},
|
||||
{
|
||||
name: 'inventory-adjustment-publish',
|
||||
component: InventoryAdjustmentPublishAlert,
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user