summaryrefslogtreecommitdiff
path: root/src/containers/sidebars/topology/building/CancelNewRoomConstructionButton.js
blob: 6061da96a3d57d6ba93a4199797320e22fe65c6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import {connect} from "react-redux";
import {cancelNewRoomConstruction} from "../../../../actions/topology";
import CancelNewRoomConstructionComponent from "../../../../components/sidebars/topology/building/CancelNewRoomConstructionComponent";

const mapDispatchToProps = dispatch => {
    return {
        onClick: () => dispatch(cancelNewRoomConstruction()),
    };
};

const CancelNewRoomConstructionButton = connect(
    null,
    mapDispatchToProps
)(CancelNewRoomConstructionComponent);

export default CancelNewRoomConstructionButton;