diff --git a/client/cryps.css b/client/cryps.css index acefcd0a..3d2b7fde 100644 --- a/client/cryps.css +++ b/client/cryps.css @@ -153,7 +153,7 @@ header { } .header-username { - letter-spacing: 0.25em; + letter-spacing: 0.05em; font-size: 2em; display: inline; } @@ -485,10 +485,7 @@ header { } .logs { - padding-left: 2em; - display: flex; - flex-flow: row wrap; - flex: 0 0 20%; + flex: 0 0 100%; } .selected-skills { diff --git a/client/src/actions.jsx b/client/src/actions.jsx index d952ba54..0c17da7d 100644 --- a/client/src/actions.jsx +++ b/client/src/actions.jsx @@ -13,6 +13,9 @@ export const setInstance = value => ({ type: SET_INSTANCE, value }); export const SET_GAME = 'SET_GAME'; export const setGame = value => ({ type: SET_GAME, value }); +export const SET_SHOW_LOG = 'SET_SHOW_LOG'; +export const setShowLog = value => ({ type: SET_SHOW_LOG, value }); + export const SET_COMBINER = 'SET_COMBINER'; export const setCombiner = value => ({ type: SET_COMBINER, value: Array.from(value) }); @@ -26,7 +29,7 @@ export const SET_ACTIVE_SKILL = 'SET_ACTIVE_SKILL'; export const setActiveSkill = (crypId, skill) => ({ type: SET_ACTIVE_SKILL, value: crypId ? { crypId, skill } : null }); export const SET_INFO = 'SET_INFO'; -export const setInfo = (type, value) => ({ type: SET_INFO, value: type ? { type, value } : null }); +export const setInfo = value => ({ type: SET_INFO, value }); export const SET_RECLAIMING = 'SET_RECLAIMING'; export const setReclaiming = value => ({ type: SET_RECLAIMING, value }); diff --git a/client/src/components/cryp.list.component.jsx b/client/src/components/cryp.list.component.jsx index fb15834c..867912b8 100644 --- a/client/src/components/cryp.list.component.jsx +++ b/client/src/components/cryp.list.component.jsx @@ -1,9 +1,9 @@ const preact = require('preact'); -const { Component } = require('preact'); const range = require('lodash/range'); const { stringSort } = require('./../utils'); const molecule = require('./molecule'); +const SpawnButton = require('./spawn.button'); const idSort = stringSort('id'); @@ -13,40 +13,6 @@ const COLOURS = [ '#3498db', ]; -class SpawnButton extends Component { - toggle(e) { - this.setState({ enabled: e }); - } - - render({ spawn }, { enabled }) { - let spawnName = null; - return ( -