mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
feat: refactoring alerts.
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
import React from 'react';
|
||||
import CurrencyDeleteAlert from 'containers/Alerts/Currencies/CurrencyDeleteAlert';
|
||||
|
||||
export default function CurrenciesAlerts() {
|
||||
return (
|
||||
<div>
|
||||
<CurrencyDeleteAlert name={'currency-delete'} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
const CurrencyDeleteAlert = React.lazy(() =>
|
||||
import('../../Alerts/Currencies/CurrencyDeleteAlert'),
|
||||
);
|
||||
export default [{ name: 'currency-delete', component: CurrencyDeleteAlert }];
|
||||
|
||||
@@ -5,7 +5,6 @@ import intl from 'react-intl-universal';
|
||||
|
||||
import { CurrenciesProvider } from './CurrenciesProvider';
|
||||
import CurrenciesDataTable from './CurrenciesDataTable';
|
||||
import CurrenciesAlerts from './CurrenciesAlerts';
|
||||
|
||||
import withDashboardActions from 'containers/Dashboard/withDashboardActions';
|
||||
|
||||
@@ -22,7 +21,6 @@ function CurrenciesList({
|
||||
return (
|
||||
<CurrenciesProvider>
|
||||
<CurrenciesDataTable />
|
||||
<CurrenciesAlerts />
|
||||
</CurrenciesProvider>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user