mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
WIP Version 0.0.1
This commit is contained in:
17
client/src/containers/Views/withViewDetails.js
Normal file
17
client/src/containers/Views/withViewDetails.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import {connect} from 'react-redux';
|
||||
import {
|
||||
getViewItem,
|
||||
getViewMeta,
|
||||
} from 'store/customViews/customViews.selectors';
|
||||
|
||||
|
||||
export const mapStateToProps = (state, props) => {
|
||||
const { viewId } = props;
|
||||
|
||||
return {
|
||||
viewMeta: getViewMeta(state, viewId),
|
||||
viewItem: getViewItem(state, viewId),
|
||||
};
|
||||
};
|
||||
|
||||
export default connect(mapStateToProps);
|
||||
Reference in New Issue
Block a user