diff --git a/client/src/actions.jsx b/client/src/actions.jsx index 8002fc6c..57315e7c 100644 --- a/client/src/actions.jsx +++ b/client/src/actions.jsx @@ -3,7 +3,6 @@ export const setCryps = value => ({ type: 'SET_CRYPS', value }); export const setItemInfo = value => ({ type: 'SET_ITEM_INFO', value }); export const setSkip = value => ({ type: 'SET_SKIP', value }); export const setVboxHighlight = value => ({ type: 'SET_VBOX_HIGHLIGHT', value }); -export const setVboxHidden = value => ({ type: 'SET_VBOX_HIDDEN', value }); export const setInstances = value => ({ type: 'SET_INSTANCES', value }); export const setNav = value => ({ type: 'SET_NAV', value }); export const setInstance = value => ({ type: 'SET_INSTANCE', value }); diff --git a/client/src/components/info.component.jsx b/client/src/components/info.component.jsx index 1ae989bf..2fc43b63 100644 --- a/client/src/components/info.component.jsx +++ b/client/src/components/info.component.jsx @@ -1,26 +1,20 @@ const preact = require('preact'); const range = require('lodash/range'); -const { ITEMS: { SKILLS, COLOURS, SPECS: SPEC_CONSTANT } } = require('./../constants'); -const { COLOUR_ICONS, STATS, SPECS, convertItem, crypAvatar } = require('../utils'); -const shapes = require('./shapes'); +const { ITEMS: { SPECS: SPEC_CONSTANT } } = require('./../constants'); +const { COLOUR_ICONS, convertItem } = require('../utils'); function Info(args) { const { - activeCryp, - info, - infoCryp, itemInfo, combiner, - sendUnequip, instance, player, - vboxHidden, } = args; - function CrypItem() { + function Info() { if (!info) return false; const fullInfo = itemInfo.items.find(i => i.item === info); if (!fullInfo) return false; @@ -37,16 +31,11 @@ function Info(args) { }); const teamColours = { red, blue, green }; - const unequipBtn = activeCryp - ? - : null; - if (isSkill) { return (