mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
feat: Optimize connect component props with redux store.
This commit is contained in:
@@ -18,6 +18,7 @@ import {useUpdateEffect} from 'hooks';
|
||||
import withItemsActions from 'containers/Items/withItemsActions';
|
||||
import withDashboard from 'containers/Dashboard/withDashboard';
|
||||
import withViewDetail from 'containers/Views/withViewDetails';
|
||||
import withItems from 'containers/Items/withItems';
|
||||
|
||||
|
||||
function ItemsViewsTabs({
|
||||
@@ -25,6 +26,7 @@ function ItemsViewsTabs({
|
||||
viewId,
|
||||
viewItem,
|
||||
|
||||
// #withItems
|
||||
itemsViews,
|
||||
|
||||
// #withItemsActions
|
||||
@@ -121,4 +123,7 @@ export default compose(
|
||||
withDashboard,
|
||||
withItemsActions,
|
||||
withViewDetail,
|
||||
withItems( ({ itemsViews }) => ({
|
||||
itemsViews,
|
||||
}))
|
||||
)(ItemsViewsTabs);
|
||||
|
||||
Reference in New Issue
Block a user