mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
fix(webapp): code cleanup
This commit is contained in:
@@ -7,7 +7,6 @@ import { useDeleteTaxRate } from '@/hooks/query/taxRates';
|
||||
|
||||
import withAlertStoreConnect from '@/containers/Alert/withAlertStoreConnect';
|
||||
import withAlertActions from '@/containers/Alert/withAlertActions';
|
||||
import withItemsActions from '@/containers/Items/withItemsActions';
|
||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
||||
|
||||
import { compose } from '@/utils';
|
||||
@@ -51,7 +50,10 @@ function TaxRateDeleteAlert({
|
||||
data: { errors },
|
||||
},
|
||||
}) => {
|
||||
// handleDeleteErrors(errors);
|
||||
AppToaster.show({
|
||||
message: 'Something went wrong.',
|
||||
intent: Intent.DANGER,
|
||||
});
|
||||
},
|
||||
)
|
||||
.finally(() => {
|
||||
@@ -86,6 +88,5 @@ function TaxRateDeleteAlert({
|
||||
export default compose(
|
||||
withAlertStoreConnect(),
|
||||
withAlertActions,
|
||||
withItemsActions,
|
||||
withDrawerActions,
|
||||
)(TaxRateDeleteAlert);
|
||||
|
||||
@@ -4,8 +4,6 @@ import React from 'react';
|
||||
const TaxRateDeleteAlert = React.lazy(() => import('./TaxRateDeleteAlert'));
|
||||
|
||||
/**
|
||||
* Project alerts.
|
||||
* Tax rates alerts.
|
||||
*/
|
||||
export default [
|
||||
{ name: 'tax-rate-delete', component: TaxRateDeleteAlert },
|
||||
];
|
||||
export default [{ name: 'tax-rate-delete', component: TaxRateDeleteAlert }];
|
||||
|
||||
Reference in New Issue
Block a user