summaryrefslogtreecommitdiff
path: root/src/containers/sidebars/topology/building/CancelNewRoomConstructionButton.js
blob: 399c7a0d787f0e4db26189164d4bbeaa4b1b6fdb (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/building";
import CancelNewRoomConstructionComponent from "../../../../components/sidebars/topology/building/CancelNewRoomConstructionComponent";

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

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

export default CancelNewRoomConstructionButton;