aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/src/main/frontend/src/features/version/Version.js
blob: 5df68759c0a61d103a7bb88573c648dd21a0cce1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { connect } from 'react-redux';
import VersionView from 'features/version/VersionView';
import { workflowVersionFetchRequestedAction } from 'features/version/versionConstants';

const mapStateToProps = ({ currentVersion: { operationMode } }) => {
    return {
        operationMode
    };
};

const mapDispatchToProps = dispatch => ({
    loadSelectedVersion: payload =>
        dispatch(workflowVersionFetchRequestedAction(payload))
});

export default connect(
    mapStateToProps,
    mapDispatchToProps
)(VersionView);