From c950a0a866fbe3e93227b56f1e5266e3b8847bba Mon Sep 17 00:00:00 2001 From: ntr Date: Mon, 8 Oct 2018 17:26:23 +1100 Subject: [PATCH] spawn button --- client/src/components/cryp.list.jsx | 66 +++++++++++++++++++---------- 1 file changed, 43 insertions(+), 23 deletions(-) diff --git a/client/src/components/cryp.list.jsx b/client/src/components/cryp.list.jsx index 072ea116..294fc6d0 100644 --- a/client/src/components/cryp.list.jsx +++ b/client/src/components/cryp.list.jsx @@ -1,23 +1,43 @@ -const preact = require('preact'); - -function CrypPanel({ cryps, sendCombatPve }) { - if (!cryps) return
not ready
; - const crypPanels = cryps.map(cryp => ( -
-
{cryp.name}
- -
- )); - return ( -
- {crypPanels} -
- ); -} - -module.exports = CrypPanel; +const preact = require('preact'); + +function CrypPanel({ cryps, sendCombatPve }) { + if (!cryps) return
not ready
; + const crypPanels = cryps.map(cryp => ( + +
+
+
+
+

{cryp.name}

+

Level {cryp.lvl}

+
+
+
+ +
+
+ +
+
{cryp.hp.value} / {cryp.stam.value} HP
+ +
+ +
+ )); + return ( +
+ + Spawn 👾 + + + {crypPanels} +
+ ); +} + +module.exports = CrypPanel;