blob: 97abf47361c5d4bf577de70a95394cd32b5a6cfb (
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/rack";
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;
|