remove info from vbox
This commit is contained in:
parent
a6cd2a3e0a
commit
f961f8485d
@ -21,7 +21,6 @@ const addState = connect(
|
||||
itemInfo,
|
||||
itemUnequip,
|
||||
navInstance,
|
||||
info,
|
||||
tutorial,
|
||||
} = state;
|
||||
|
||||
@ -60,7 +59,6 @@ const addState = connect(
|
||||
sendItemUnequip,
|
||||
navInstance,
|
||||
tutorial,
|
||||
info,
|
||||
};
|
||||
},
|
||||
|
||||
@ -104,7 +102,6 @@ class Vbox extends preact.Component {
|
||||
if (newProps.reclaiming !== this.props.reclaiming) return true;
|
||||
if (newProps.navInstance !== this.props.navInstance) return true;
|
||||
if (newProps.tutorial !== this.props.tutorial) return true;
|
||||
if (newProps.info !== this.props.info) return true;
|
||||
if (newProps.vboxSelected !== this.props.vboxSelected) return true;
|
||||
if (newProps.player !== this.props.player) return true;
|
||||
if (newProps.instance !== this.props.instance) return true;
|
||||
@ -120,7 +117,6 @@ class Vbox extends preact.Component {
|
||||
reclaiming,
|
||||
tutorial,
|
||||
navInstance,
|
||||
info,
|
||||
vboxSelected,
|
||||
instance,
|
||||
|
||||
@ -166,7 +162,7 @@ class Vbox extends preact.Component {
|
||||
const base = combiner.find(c => !['Red', 'Blue', 'Green'].includes(vbox.bound[c]));
|
||||
if (base || base === 0) return true;
|
||||
}
|
||||
if (info !== v) setInfo(v);
|
||||
setInfo(v);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@ -440,7 +436,6 @@ class Vbox extends preact.Component {
|
||||
//
|
||||
function hoverInfo(e, newInfo) {
|
||||
e.stopPropagation();
|
||||
if (info === newInfo) return true;
|
||||
return setInfo(newInfo);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user