summaryrefslogtreecommitdiff
path: root/src/containers/sidebars/topology/rack/EmptySlotContainer.js
blob: 01ec652916f15ef1c143fc487dadba78df346405 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import {connect} from "react-redux";
import {addMachine} from "../../../../actions/topology";
import EmptySlotComponent from "../../../../components/sidebars/topology/rack/EmptySlotComponent";

const mapDispatchToProps = (dispatch, ownProps) => {
    return {
        onAdd: () => dispatch(addMachine(ownProps.position)),
    };
};

const EmptySlotContainer = connect(
    undefined,
    mapDispatchToProps
)(EmptySlotComponent);

export default EmptySlotContainer;