feat: refactoring alerts.

This commit is contained in:
elforjani13
2021-10-31 13:13:38 +02:00
parent 60f45f281a
commit ea466404ec
34 changed files with 264 additions and 227 deletions

View File

@@ -1,12 +1,9 @@
import React from 'react';
import ExchangeRateDeleteAlert from 'containers/Alerts/ExchangeRates/ExchangeRateDeleteAlert';
// import ExchangeRateBulkDeleteAlert from 'containers/Alerts/ExchangeRates/ExchangeRateBulkDeleteAlert';
const ExchangeRateDeleteAlert = React.lazy(() =>
import('../Alerts/ExchangeRates/ExchangeRateDeleteAlert'),
);
export default function ExchangeRatesAlerts() {
return (
<div>
<ExchangeRateDeleteAlert name={'exchange-rate-delete'} />
</div>
);
}
export default [
{ name: 'exchange-rate-delete', component: ExchangeRateDeleteAlert },
];

View File

@@ -7,7 +7,6 @@ import ExchangeRateTable from './ExchangeRateTable';
import ExchangeRateActionsBar from './ExchangeRateActionsBar';
import { ExchangeRatesProvider } from './ExchangeRatesProvider';
import ExchangeRatesAlerts from './ExchangeRatesAlerts';
import withExchangeRates from './withExchangeRates';
import { transformTableStateToQuery } from 'utils';
@@ -29,7 +28,6 @@ function ExchangeRatesList({
<ExchangeRateTable />
</DashboardContentTable>
</DashboardPageContent>
<ExchangeRatesAlerts />
</ExchangeRatesProvider>
);
}