diff --git a/html-client/src/components/body.component.jsx b/html-client/src/components/body.component.jsx
index 7c1b3b8f..fd23e110 100644
--- a/html-client/src/components/body.component.jsx
+++ b/html-client/src/components/body.component.jsx
@@ -8,6 +8,7 @@ const CrypSpawnContainer = require('./cryp.spawn.container');
const CrypListContainer = require('./cryp.list.container');
const GameContainer = require('./game.container');
const InstanceContainer = require('./instance.container');
+const Logs = require('./logs');
const addState = connect(
(state) => {
@@ -34,13 +35,20 @@ function renderBody(props) {
return (
-
+
+
+
+
+
+
+
+
);
}
diff --git a/html-client/src/components/game.jsx b/html-client/src/components/game.jsx
index f1a2f004..16e0e966 100644
--- a/html-client/src/components/game.jsx
+++ b/html-client/src/components/game.jsx
@@ -156,7 +156,6 @@ function GamePanel(props) {
);
diff --git a/html-client/src/components/logs.jsx b/html-client/src/components/logs.jsx
new file mode 100644
index 00000000..77b4b3dd
--- /dev/null
+++ b/html-client/src/components/logs.jsx
@@ -0,0 +1,19 @@
+const preact = require('preact');
+const { connect } = require('preact-redux');
+
+// const Logs = require('./logs');
+
+const addState = connect(
+ function receiveState(state) {
+ const { game } = state;
+ return { game };
+ }
+);
+
+function Logs(props) {
+ const { game } = props;
+ const logs = game.log.reverse().map((l, i) => ({l}
));
+ return ({logs}
);
+}
+
+module.exports = addState(Logs);