rename ability
This commit is contained in:
@@ -4,7 +4,7 @@ const Game = require('./game');
|
||||
|
||||
const addState = connect(
|
||||
function receiveState(state) {
|
||||
const { game } = state;
|
||||
const { game, account } = state;
|
||||
// function sendCombatPve(crypId) {
|
||||
// return ws.sendCombatPve(crypId);
|
||||
// }
|
||||
|
||||
@@ -1,9 +1,17 @@
|
||||
const preact = require('preact');
|
||||
|
||||
function GamePanel({ game }) {
|
||||
function GamePanel({ game, sendGameAbility, account }) {
|
||||
if (!game) return <div>...</div>;
|
||||
return (
|
||||
<div>{JSON.stringify(game)}</div>
|
||||
<div>
|
||||
<div>{JSON.stringify(game)}</div>
|
||||
<button
|
||||
className="button is-dark is-fullwidth"
|
||||
type="submit"
|
||||
onClick={() => sendCrypSpawn(name)}>
|
||||
Spawn 👾
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
// return (
|
||||
// <div className="">
|
||||
|
||||
Reference in New Issue
Block a user