mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
re-structure to monorepo.
This commit is contained in:
25
packages/webapp/src/containers/Views/ViewForm.container.tsx
Normal file
25
packages/webapp/src/containers/Views/ViewForm.container.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
// @ts-nocheck
|
||||
import {connect} from 'react-redux';
|
||||
import {compose} from '@/utils';
|
||||
|
||||
import withDashboardActions from '@/containers/Dashboard/withDashboardActions';
|
||||
import withResourceDetail from '@/containers/Resources/withResourceDetails';
|
||||
import withViewsActions from '@/containers/Views/withViewsActions';
|
||||
import withViewsDetails from '@/containers/Views/withViewDetails';
|
||||
|
||||
const mapStateToProps = (state, ownProps) => {
|
||||
return {
|
||||
resourceName: ownProps.viewId ?
|
||||
ownProps.viewMeta.resource?.name : ownProps.resourceName,
|
||||
};
|
||||
};
|
||||
|
||||
const viewFormConnect = connect(mapStateToProps);
|
||||
|
||||
export default compose(
|
||||
withDashboardActions,
|
||||
withViewsActions,
|
||||
withViewsDetails,
|
||||
viewFormConnect,
|
||||
withResourceDetail(),
|
||||
);
|
||||
Reference in New Issue
Block a user