diff --git a/client/src/components/game.component.jsx b/client/src/components/game.component.jsx index a7f60dcf..0b613f02 100644 --- a/client/src/components/game.component.jsx +++ b/client/src/components/game.component.jsx @@ -1,4 +1,5 @@ const preact = require('preact'); +const { STATS, eventClasses, getCombatText, ConstructAvatar } = require('../utils'); // const { animationDivs } = require('../animations'); const GameConstruct = require('./game.construct'); diff --git a/client/src/components/game.construct.jsx b/client/src/components/game.construct.jsx index fa90a8c8..3ce45990 100644 --- a/client/src/components/game.construct.jsx +++ b/client/src/components/game.construct.jsx @@ -3,7 +3,7 @@ const preact = require('preact'); const range = require('lodash/range'); const actions = require('../actions'); -const { STATS, eventClasses, getCombatText, constructAvatar, constructHealth } = require('../utils'); +const { STATS, eventClasses, getCombatText, ConstructAvatar, constructHealth } = require('../utils'); const { animationDivs } = require('../animations'); const shapes = require('./shapes'); @@ -106,7 +106,7 @@ function GameConstruct(props) {
selectSkillTarget(construct.id)} > - {constructAvatar(construct.name, construct.id)} + {combatTextEl}
{effects}
diff --git a/client/src/components/list.jsx b/client/src/components/list.jsx index 778f9e11..203b7789 100644 --- a/client/src/components/list.jsx +++ b/client/src/components/list.jsx @@ -1,7 +1,7 @@ const { connect } = require('preact-redux'); const preact = require('preact'); -const { stringSort, NULL_UUID, COLOURS, constructAvatar } = require('./../utils'); +const { stringSort, NULL_UUID, COLOURS, ConstructAvatar } = require('./../utils'); const actions = require('./../actions'); const InstanceCreateForm = require('./instance.create.form'); @@ -118,7 +118,7 @@ function List(args) {
- {constructAvatar(construct.name, construct.id)} +

{construct.name}

); diff --git a/client/src/components/login.component.jsx b/client/src/components/login.component.jsx index 2e8ba903..43c7671f 100644 --- a/client/src/components/login.component.jsx +++ b/client/src/components/login.component.jsx @@ -14,13 +14,13 @@ function renderLogin({ submitLogin, submitRegister }) { className="login-input" type="email" placeholder="username" - onChange={e => (details.name = e.target.value)} + onInput={e => (details.name = e.target.value)} /> (details.password = e.target.value)} + onInput={e => (details.password = e.target.value)} />