From 3f736cd3db63f106eac02f220477b4a0f3b0eceb Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Thu, 31 Aug 2017 17:59:51 +0200 Subject: Implement room creation --- src/containers/map/WallContainer.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/containers/map/WallContainer.js (limited to 'src/containers/map/WallContainer.js') diff --git a/src/containers/map/WallContainer.js b/src/containers/map/WallContainer.js new file mode 100644 index 00000000..f8ccb2e9 --- /dev/null +++ b/src/containers/map/WallContainer.js @@ -0,0 +1,14 @@ +import {connect} from "react-redux"; +import WallGroup from "../../components/map/groups/WallGroup"; + +const mapStateToProps = (state, ownProps) => { + return { + tiles: state.objects.room[ownProps.roomId].tileIds.map(tileId => state.objects.tile[tileId]), + }; +}; + +const WallContainer = connect( + mapStateToProps +)(WallGroup); + +export default WallContainer; -- cgit v1.2.3