mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
feat: Optimize connect component props with redux store.
This commit is contained in:
@@ -28,6 +28,7 @@ const ItemsActionsBar = ({
|
||||
resourceName = 'items',
|
||||
resourceFields,
|
||||
|
||||
// #withItems
|
||||
itemsViews,
|
||||
|
||||
onFilterChanged,
|
||||
@@ -128,6 +129,10 @@ const ItemsActionsBar = ({
|
||||
|
||||
export default compose(
|
||||
DialogConnect,
|
||||
withItems,
|
||||
withResourceDetail,
|
||||
withItems(({ itemsViews }) => ({
|
||||
itemsViews,
|
||||
})),
|
||||
withResourceDetail(({ resourceFields }) => ({
|
||||
resourceFields,
|
||||
})),
|
||||
)(ItemsActionsBar);
|
||||
|
||||
Reference in New Issue
Block a user