summaryrefslogtreecommitdiff
path: root/frontend/src/containers/app/map/WallContainer.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/containers/app/map/WallContainer.js')
-rw-r--r--frontend/src/containers/app/map/WallContainer.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/frontend/src/containers/app/map/WallContainer.js b/frontend/src/containers/app/map/WallContainer.js
new file mode 100644
index 00000000..38192b05
--- /dev/null
+++ b/frontend/src/containers/app/map/WallContainer.js
@@ -0,0 +1,14 @@
+import { connect } from "react-redux";
+import WallGroup from "../../../components/app/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;