info stuff

This commit is contained in:
ntr
2019-04-03 23:59:00 +11:00
parent 13cd21c925
commit 6ca0ed86f4
5 changed files with 20 additions and 21 deletions
+14 -15
View File
@@ -44,27 +44,26 @@ function Info(args) {
<div className="info-specs">
{specs}
</div>
</div>
);
}
/*if (item) {
if (SKILLS[item]) {
itemDetails = SKILLS[item];
} else if (SPECS[item]) {
itemDetails = SPECS[item];
} else if (COLOURS[item]) {
itemDetails = COLOURS[item];
if (type === 'item') {
let itemDetails;
if (SKILLS[value]) {
itemDetails = SKILLS[value];
} else if (SPECS[value]) {
itemDetails = SPECS[value];
} else if (COLOURS[value]) {
itemDetails = COLOURS[value];
}
}*/
/* const unequip = (itemDetails && cryp)
? <button onClick={() => sendUnequip(cryp.id, item)}> unequip </button>
: null;
*/
return (
<div className="instance-info">
{itemDetails}
</div>
);
}
}
module.exports = Info;
+1 -1
View File
@@ -45,7 +45,7 @@ const addState = connect(
}
function setInfo(type, info) {
return dispatch(actions.setInfo(type, info));
return dispatch(actions.setInfo([type, info]));
}