2021-02-04 19:15:23 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { compose } from 'redux';
|
|
|
|
import withModalProps from '../../../../helpers/higher-order-components/with-modal-props';
|
|
|
|
import { getSelectedIdentity } from '../../../../selectors';
|
|
|
|
import EditApprovalPermission from './edit-approval-permission.component';
|
2019-11-05 16:13:48 +01:00
|
|
|
|
|
|
|
const mapStateToProps = (state) => {
|
2021-02-04 19:15:23 +01:00
|
|
|
const modalStateProps = state.appState.modal.modalState.props || {};
|
2019-11-05 16:13:48 +01:00
|
|
|
return {
|
|
|
|
selectedIdentity: getSelectedIdentity(state),
|
|
|
|
...modalStateProps,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
|
|
|
};
|
2019-11-05 16:13:48 +01:00
|
|
|
|
|
|
|
export default compose(
|
|
|
|
withModalProps,
|
2020-07-14 17:20:41 +02:00
|
|
|
connect(mapStateToProps),
|
2021-02-04 19:15:23 +01:00
|
|
|
)(EditApprovalPermission);
|