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,11 +1,10 @@
import React, { useEffect } from 'react';
import intl from 'react-intl-universal';
import {UsersListProvider } from './UsersProvider';
import { UsersListProvider } from './UsersProvider';
import withDashboardActions from 'containers/Dashboard/withDashboardActions';
import UsersDataTable from './UsersDataTable';
import UsersAlerts from './UsersAlerts';
import { compose } from 'utils';
/**
@@ -15,7 +14,6 @@ function UsersListPreferences({
// #withDashboardActions
changePreferencesPageTitle,
}) {
useEffect(() => {
changePreferencesPageTitle(intl.get('users'));
}, [changePreferencesPageTitle]);
@@ -23,11 +21,8 @@ function UsersListPreferences({
return (
<UsersListProvider>
<UsersDataTable />
<UsersAlerts />
</UsersListProvider>
);
}
export default compose(
withDashboardActions,
)(UsersListPreferences);
export default compose(withDashboardActions)(UsersListPreferences);