info stuff
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -45,7 +45,7 @@ const addState = connect(
|
||||
}
|
||||
|
||||
function setInfo(type, info) {
|
||||
return dispatch(actions.setInfo(type, info));
|
||||
return dispatch(actions.setInfo([type, info]));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user